diff --git a/apps/demo/vite.config.js b/apps/demo/vite.config.js index c7f8ad4d1..f23e68d1d 100644 --- a/apps/demo/vite.config.js +++ b/apps/demo/vite.config.js @@ -6,7 +6,11 @@ import eslintPlugin from 'vite-plugin-eslint'; export default defineConfig({ server: { open: true }, preview: { open: true }, - plugins: [react(), eslintPlugin(), checker({ typescript: true })], + plugins: [ + react(), + { ...eslintPlugin(), apply: 'serve' }, // dev only to reduce build time + { ...checker({ typescript: true }), apply: 'serve' }, // dev only to reduce build time + ], // `es2020` required by @h5web/h5wasm for BigInt `123n` notation support optimizeDeps: { esbuildOptions: { target: 'es2020' } },