fix: Disable Vite CJS warnings (#296)

This commit is contained in:
Aaron
2023-12-23 09:35:43 -06:00
committed by GitHub
parent aea137a3a1
commit b4a2cf4cb2
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -80,6 +80,3 @@ jobs:
working-directory: templates/${{ matrix.template }}
- run: pnpm build
working-directory: templates/${{ matrix.template }}
env:
# Debug Vite 5's deprecated CJS support
VITE_CJS_TRACE: true
+3
View File
@@ -5,6 +5,9 @@ import consola, { LogLevels } from 'consola';
import { printHeader } from '~/core/utils/log';
import { formatDuration } from '~/core/utils/time';
// TODO: Remove. See https://github.com/wxt-dev/wxt/issues/277
process.env.VITE_CJS_IGNORE_WARNING = 'true';
const cli = cac('wxt');
cli.help();
cli.version(version);