import { defineConfig } from 'vite' import { svelte } from '@sveltejs/vite-plugin-svelte' import { viteCommonjs } from '@originjs/vite-plugin-commonjs' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ svelte(), viteCommonjs({ transformMixedEsModules: true, }), ], build: { commonjsOptions: { transformMixedEsModules: true, }, minify: false, target: "modules", }, })