Skip to content

Commit

Permalink
fix(create-rsbuild): enable verbatimModuleSyntax for svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jul 2, 2024
1 parent 8264a56 commit 35647ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/cases/svelte/ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "@rsbuild/config/tsconfig",
"compilerOptions": {
"module": "ESNext"
"module": "ESNext",
"verbatimModuleSyntax": true
},
"include": ["src"]
}
3 changes: 3 additions & 0 deletions packages/create-rsbuild/template-svelte-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"noEmit": true,
"strict": true,
"skipLibCheck": true,
// svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
// to enforce using `import type` instead of `import` for Types.
"verbatimModuleSyntax": true,
"isolatedModules": true,
"resolveJsonModule": true,
"moduleResolution": "bundler",
Expand Down

0 comments on commit 35647ec

Please sign in to comment.