Skip to content

Commit 9496d56

Browse files
fix(create-webpack-app): drop the Vue baseUrl that TypeScript 6 rejects
`baseUrl` is deprecated in TypeScript 6, so every module in the Vue TypeScript project failed with TS5101 once the pin moved to 6. A `paths` mapping needs no `baseUrl` when it is relative, which is also what fixed the TS5090 the option was added for.
1 parent b3bdf75 commit 9496d56

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/create-webpack-app/templates/init/vue/tsconfig.json.tpl‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
"erasableSyntaxOnly": true,
1515
"isolatedModules": true,
1616
"rewriteRelativeImportExtensions": true,
17-
"baseUrl": ".",
1817
"types": [
1918
"webpack-env",
2019
"vue-router"
2120
],
2221
"paths": {
2322
"@/*": [
24-
"src/*"
23+
"./src/*"
2524
]
2625
},
2726
"lib": [

0 commit comments

Comments
 (0)