From 28b9ce9d3ae25a8f16e9c81958b836593811a6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 17 Sep 2024 13:31:57 +0800 Subject: [PATCH] fix: support TS 5.6 for svelte --- src/esbuild/svelte.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/esbuild/svelte.ts b/src/esbuild/svelte.ts index 3dd874469..e490ab00d 100644 --- a/src/esbuild/svelte.ts +++ b/src/esbuild/svelte.ts @@ -70,7 +70,7 @@ export const sveltePlugin = ({ sourceMap: true, typescript: { compilerOptions: { - preserveValueImports: true, + verbatimModuleSyntax: true, }, }, }) @@ -84,7 +84,7 @@ export const sveltePlugin = ({ sourcemap: true, tsconfigRaw: { compilerOptions: { - preserveValueImports: true, + verbatimModuleSyntax: true, }, }, logLevel: build.initialOptions.logLevel,