From b5b467908ec5f1750987e09606e210fc118cd535 Mon Sep 17 00:00:00 2001 From: Artea Date: Mon, 17 Nov 2025 15:09:48 +0800 Subject: [PATCH] fix(tsToJs): add tsconfigRaw to preserve icon import statements --- build/utils/tsToJs.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/utils/tsToJs.ts b/build/utils/tsToJs.ts index 00d11912c80..c605b91c45f 100644 --- a/build/utils/tsToJs.ts +++ b/build/utils/tsToJs.ts @@ -13,7 +13,13 @@ export function tsToJs(content: string | null): string { loader: 'ts', minify: false, minifyWhitespace: false, - charset: 'utf8' + charset: 'utf8', + // to keep the icon `import` statement in script setup + tsconfigRaw: `{ + "compilerOptions": { + "verbatimModuleSyntax": true + } + }` }) return code.trim().replace(/__blankline;/g, '') }