Skip to content

Commit

Permalink
feat(create-rsbuild): enable allowImportingTsExtensions (#2710)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jun 26, 2024
1 parent 7e96510 commit 0ef0cf5
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-lit-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
2 changes: 2 additions & 0 deletions packages/create-rsbuild/template-preact-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"]
Expand Down
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-react-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-solid-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-svelte-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-vanilla-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-vue2-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
4 changes: 3 additions & 1 deletion packages/create-rsbuild/template-vue3-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit 0ef0cf5

Please sign in to comment.