diff --git a/vite.config.js b/vite.config.js index 772de7d72..6f3ca63ee 100644 --- a/vite.config.js +++ b/vite.config.js @@ -137,6 +137,9 @@ export default defineConfig(({ mode }) => { port: 3000, }, build: { + commonjsOptions: { + transformMixedEsModules: true + }, outDir: 'build', sourcemap: !prod, rollupOptions: {