aboutsummaryrefslogtreecommitdiff
path: root/web/pw-frontend/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-frontend/vite.config.js')
-rw-r--r--web/pw-frontend/vite.config.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/web/pw-frontend/vite.config.js b/web/pw-frontend/vite.config.js
index 7682f94..bce1f51 100644
--- a/web/pw-frontend/vite.config.js
+++ b/web/pw-frontend/vite.config.js
@@ -1,12 +1,20 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
-import nodePolyfills from 'rollup-plugin-polyfill-node'
-
+import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
- nodePolyfills()
+ viteCommonjs({
+ transformMixedEsModules: true,
+ }),
],
+ build: {
+ commonjsOptions: {
+ transformMixedEsModules: true,
+ },
+ minify: false,
+ target: "modules",
+ },
})