From ad6635dd6abfe106a0a0659cf5e91451dd916e85 Mon Sep 17 00:00:00 2001 From: "Wong Zhao Wu (Bryan)" <70313929+kiritowu@users.noreply.github.com> Date: Mon, 8 Jan 2024 21:49:41 +0800 Subject: [PATCH] Enable inline dynamic import --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index a38333a..76f752b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,9 @@ export default defineConfig({ plugins: [sveltekit()], build: { rollupOptions: { - external: ['node_modules'] + output: { + inlineDynamicImports: true + } } } });