diff --git a/packages/create-rsbuild/template-lit-ts/tsconfig.json b/packages/create-rsbuild/template-lit-ts/tsconfig.json index 4bdc24313c..154e7ebc5f 100644 --- a/packages/create-rsbuild/template-lit-ts/tsconfig.json +++ b/packages/create-rsbuild/template-lit-ts/tsconfig.json @@ -3,12 +3,14 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-preact-ts/tsconfig.json b/packages/create-rsbuild/template-preact-ts/tsconfig.json index 98604476de..b37aee1eb3 100644 --- a/packages/create-rsbuild/template-preact-ts/tsconfig.json +++ b/packages/create-rsbuild/template-preact-ts/tsconfig.json @@ -5,12 +5,14 @@ "module": "ESNext", "jsx": "react-jsx", "jsxImportSource": "preact", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", "useDefineForClassFields": true, + "allowImportingTsExtensions": true, "paths": { "react": ["./node_modules/preact/compat/"], "react-dom": ["./node_modules/preact/compat/"] diff --git a/packages/create-rsbuild/template-react-ts/tsconfig.json b/packages/create-rsbuild/template-react-ts/tsconfig.json index e6b9bdf4e5..6fe0027231 100644 --- a/packages/create-rsbuild/template-react-ts/tsconfig.json +++ b/packages/create-rsbuild/template-react-ts/tsconfig.json @@ -4,12 +4,14 @@ "lib": ["DOM", "ES2020"], "module": "ESNext", "jsx": "react-jsx", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-solid-ts/tsconfig.json b/packages/create-rsbuild/template-solid-ts/tsconfig.json index abd16bffce..c4176cb705 100644 --- a/packages/create-rsbuild/template-solid-ts/tsconfig.json +++ b/packages/create-rsbuild/template-solid-ts/tsconfig.json @@ -5,12 +5,14 @@ "module": "ESNext", "jsx": "preserve", "jsxImportSource": "solid-js", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-svelte-ts/tsconfig.json b/packages/create-rsbuild/template-svelte-ts/tsconfig.json index 4bdc24313c..154e7ebc5f 100644 --- a/packages/create-rsbuild/template-svelte-ts/tsconfig.json +++ b/packages/create-rsbuild/template-svelte-ts/tsconfig.json @@ -3,12 +3,14 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-vanilla-ts/tsconfig.json b/packages/create-rsbuild/template-vanilla-ts/tsconfig.json index 4bdc24313c..154e7ebc5f 100644 --- a/packages/create-rsbuild/template-vanilla-ts/tsconfig.json +++ b/packages/create-rsbuild/template-vanilla-ts/tsconfig.json @@ -3,12 +3,14 @@ "target": "ES2020", "lib": ["DOM", "ES2020"], "module": "ESNext", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-vue2-ts/tsconfig.json b/packages/create-rsbuild/template-vue2-ts/tsconfig.json index 3dec02347f..a23da7e760 100644 --- a/packages/create-rsbuild/template-vue2-ts/tsconfig.json +++ b/packages/create-rsbuild/template-vue2-ts/tsconfig.json @@ -4,12 +4,14 @@ "lib": ["DOM", "ES2020"], "module": "ESNext", "jsx": "preserve", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] } diff --git a/packages/create-rsbuild/template-vue3-ts/tsconfig.json b/packages/create-rsbuild/template-vue3-ts/tsconfig.json index 8645597159..be4dc605ac 100644 --- a/packages/create-rsbuild/template-vue3-ts/tsconfig.json +++ b/packages/create-rsbuild/template-vue3-ts/tsconfig.json @@ -5,12 +5,14 @@ "module": "ESNext", "jsx": "preserve", "jsxImportSource": "vue", + "noEmit": true, "strict": true, "skipLibCheck": true, "isolatedModules": true, "resolveJsonModule": true, "moduleResolution": "bundler", - "useDefineForClassFields": true + "useDefineForClassFields": true, + "allowImportingTsExtensions": true }, "include": ["src"] }