fix(frontend): add type=module and svelte-preprocess to fix ESM build
This commit is contained in:
@@ -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 },
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user