fix(frontend): add type=module and svelte-preprocess to fix ESM build

This commit is contained in:
2026-06-29 15:46:30 -04:00
parent 931ad6c11b
commit 59fce91714
2 changed files with 11 additions and 4 deletions
+9 -4
View File
@@ -1,8 +1,13 @@
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import sveltePreprocess from 'svelte-preprocess'
export default defineConfig({
plugins: [svelte()],
plugins: [
svelte({
preprocess: sveltePreprocess({ typescript: true })
})
],
server: { port: 5188 },
preview: { port: 5188 },
});
})