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, '') }