Skip to content

Commit efcd830

Browse files
authored
fix(create-vite): avoid usage of composite in TS configs (#17774)
1 parent 6eab91e commit efcd830

File tree

17 files changed

+80
-72
lines changed

17 files changed

+80
-72
lines changed

packages/create-vite/template-lit-ts/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
/* Bundler mode */
1111
"moduleResolution": "bundler",
1212
"allowImportingTsExtensions": true,
13-
"resolveJsonModule": true,
1413
"isolatedModules": true,
1514
"moduleDetection": "force",
1615
"noEmit": true,

packages/create-vite/template-preact-ts/tsconfig.app.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
53
"target": "ES2020",
64
"useDefineForClassFields": true,
75
"module": "ESNext",
@@ -15,7 +13,6 @@
1513
/* Bundler mode */
1614
"moduleResolution": "bundler",
1715
"allowImportingTsExtensions": true,
18-
"resolveJsonModule": true,
1916
"isolatedModules": true,
2017
"moduleDetection": "force",
2118
"noEmit": true,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{
5-
"path": "./tsconfig.app.json"
6-
},
7-
{
8-
"path": "./tsconfig.node.json"
9-
}
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
106
]
117
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
3+
"target": "ES2022",
4+
"lib": ["ES2023"],
65
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
79
"moduleResolution": "bundler",
8-
"allowSyntheticDefaultImports": true,
10+
"allowImportingTsExtensions": true,
11+
"isolatedModules": true,
12+
"moduleDetection": "force",
13+
"noEmit": true,
14+
15+
/* Linting */
916
"strict": true,
10-
"noEmit": true
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
1120
},
1221
"include": ["vite.config.ts"]
1322
}

packages/create-vite/template-qwik-ts/tsconfig.app.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
53
"target": "ES2020",
64
"useDefineForClassFields": true,
75
"module": "ESNext",
@@ -11,7 +9,6 @@
119
/* Bundler mode */
1210
"moduleResolution": "bundler",
1311
"allowImportingTsExtensions": true,
14-
"resolveJsonModule": true,
1512
"isolatedModules": true,
1613
"moduleDetection": "force",
1714
"noEmit": true,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{
5-
"path": "./tsconfig.app.json"
6-
},
7-
{
8-
"path": "./tsconfig.node.json"
9-
}
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
106
]
117
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
3+
"target": "ES2022",
4+
"lib": ["ES2023"],
65
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
79
"moduleResolution": "bundler",
8-
"allowSyntheticDefaultImports": true,
10+
"allowImportingTsExtensions": true,
11+
"isolatedModules": true,
12+
"moduleDetection": "force",
13+
"noEmit": true,
14+
15+
/* Linting */
916
"strict": true,
10-
"noEmit": true
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
1120
},
1221
"include": ["vite.config.ts"]
1322
}

packages/create-vite/template-react-ts/tsconfig.app.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
53
"target": "ES2020",
64
"useDefineForClassFields": true,
75
"lib": ["ES2020", "DOM", "DOM.Iterable"],
@@ -11,7 +9,6 @@
119
/* Bundler mode */
1210
"moduleResolution": "bundler",
1311
"allowImportingTsExtensions": true,
14-
"resolveJsonModule": true,
1512
"isolatedModules": true,
1613
"moduleDetection": "force",
1714
"noEmit": true,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{
5-
"path": "./tsconfig.app.json"
6-
},
7-
{
8-
"path": "./tsconfig.node.json"
9-
}
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
106
]
117
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
3+
"target": "ES2022",
4+
"lib": ["ES2023"],
65
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
79
"moduleResolution": "bundler",
8-
"allowSyntheticDefaultImports": true,
10+
"allowImportingTsExtensions": true,
11+
"isolatedModules": true,
12+
"moduleDetection": "force",
13+
"noEmit": true,
14+
15+
/* Linting */
916
"strict": true,
10-
"noEmit": true
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
1120
},
1221
"include": ["vite.config.ts"]
1322
}

packages/create-vite/template-solid-ts/tsconfig.app.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
53
"target": "ES2020",
64
"useDefineForClassFields": true,
75
"module": "ESNext",
@@ -11,7 +9,6 @@
119
/* Bundler mode */
1210
"moduleResolution": "bundler",
1311
"allowImportingTsExtensions": true,
14-
"resolveJsonModule": true,
1512
"isolatedModules": true,
1613
"moduleDetection": "force",
1714
"noEmit": true,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{
5-
"path": "./tsconfig.app.json"
6-
},
7-
{
8-
"path": "./tsconfig.node.json"
9-
}
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
106
]
117
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
3+
"target": "ES2022",
4+
"lib": ["ES2023"],
65
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
79
"moduleResolution": "bundler",
8-
"allowSyntheticDefaultImports": true,
10+
"allowImportingTsExtensions": true,
11+
"isolatedModules": true,
12+
"moduleDetection": "force",
13+
"noEmit": true,
14+
15+
/* Linting */
916
"strict": true,
10-
"noEmit": true
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
1120
},
1221
"include": ["vite.config.ts"]
1322
}

packages/create-vite/template-vanilla-ts/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Bundler mode */
1010
"moduleResolution": "bundler",
1111
"allowImportingTsExtensions": true,
12-
"resolveJsonModule": true,
1312
"isolatedModules": true,
1413
"moduleDetection": "force",
1514
"noEmit": true,

packages/create-vite/template-vue-ts/tsconfig.app.json

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
53
"target": "ES2020",
64
"useDefineForClassFields": true,
75
"module": "ESNext",
@@ -11,7 +9,6 @@
119
/* Bundler mode */
1210
"moduleResolution": "bundler",
1311
"allowImportingTsExtensions": true,
14-
"resolveJsonModule": true,
1512
"isolatedModules": true,
1613
"moduleDetection": "force",
1714
"noEmit": true,
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"files": [],
33
"references": [
4-
{
5-
"path": "./tsconfig.app.json"
6-
},
7-
{
8-
"path": "./tsconfig.node.json"
9-
}
4+
{ "path": "./tsconfig.app.json" },
5+
{ "path": "./tsconfig.node.json" }
106
]
117
}
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
{
22
"compilerOptions": {
3-
"composite": true,
4-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5-
"skipLibCheck": true,
3+
"target": "ES2022",
4+
"lib": ["ES2023"],
65
"module": "ESNext",
6+
"skipLibCheck": true,
7+
8+
/* Bundler mode */
79
"moduleResolution": "bundler",
8-
"allowSyntheticDefaultImports": true,
10+
"allowImportingTsExtensions": true,
11+
"isolatedModules": true,
12+
"moduleDetection": "force",
13+
"noEmit": true,
14+
15+
/* Linting */
916
"strict": true,
10-
"noEmit": true
17+
"noUnusedLocals": true,
18+
"noUnusedParameters": true,
19+
"noFallthroughCasesInSwitch": true
1120
},
1221
"include": ["vite.config.ts"]
1322
}

0 commit comments

Comments
 (0)