Skip to content

Commit c4afce4

Browse files
chore: use "moduleResolution": "Bundler" at root level (#9002)
* Change to bunlder at root * Update Next defaults * Remove moduleResolution from packages * Remove from scripts * Unify moduleResolution * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent f536199 commit c4afce4

File tree

63 files changed

+90
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+90
-110
lines changed

examples/angular/auto-refetching/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/basic/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/devtools-panel/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/infinite-query-with-max-pages/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/optimistic-updates/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/pagination/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/query-options-from-a-service/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/router/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/rxjs/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/angular/simple/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"sourceMap": true,
1515
"declaration": false,
1616
"experimentalDecorators": true,
17-
"moduleResolution": "bundler",
17+
"moduleResolution": "Bundler",
1818
"importHelpers": true,
1919
"target": "ES2022",
2020
"module": "ES2022",

examples/react/auto-refetching/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/auto-refetching/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/react/infinite-query-with-max-pages/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/infinite-query-with-max-pages/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/react/load-more-infinite-scroll/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/load-more-infinite-scroll/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/react/nextjs-app-prefetching/tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "ES5",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
88
"forceConsistentCasingInFileNames": true,
99
"noEmit": true,
1010
"esModuleInterop": true,
11-
"module": "esnext",
11+
"module": "ESNext",
1212
"moduleResolution": "Bundler",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,

examples/react/nextjs-suspense-streaming/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

examples/react/nextjs-suspense-streaming/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "ES5",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
88
"forceConsistentCasingInFileNames": true,
99
"noEmit": true,
1010
"esModuleInterop": true,
11-
"module": "esnext",
12-
"moduleResolution": "node",
11+
"module": "ESNext",
12+
"moduleResolution": "Bundler",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "preserve",

examples/react/nextjs/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/nextjs/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/react/optimistic-updates-cache/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/optimistic-updates-cache/tsconfig.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"compilerOptions": {
33
"strict": true,
44
"esModuleInterop": true,
5-
"lib": ["dom", "es2015"],
5+
"lib": ["DOM", "ES2015"],
66
"jsx": "preserve",
7-
"target": "es5",
7+
"target": "ES5",
88
"allowJs": true,
99
"skipLibCheck": true,
1010
"forceConsistentCasingInFileNames": true,
1111
"noEmit": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
12+
"module": "ESNext",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"incremental": true

examples/react/optimistic-updates-ui/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/optimistic-updates-ui/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"esModuleInterop": true,
55
"lib": ["dom", "es2015"],
66
"jsx": "preserve",
7-
"target": "es5",
7+
"target": "ES5",
88
"allowJs": true,
99
"skipLibCheck": true,
1010
"forceConsistentCasingInFileNames": true,
1111
"noEmit": true,
12-
"module": "esnext",
13-
"moduleResolution": "node",
12+
"module": "ESNext",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"incremental": true

examples/react/pagination/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/pagination/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/react/prefetching/next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

examples/react/prefetching/tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"forceConsistentCasingInFileNames": true,
88
"noEmit": true,
99
"esModuleInterop": true,
10-
"module": "esnext",
10+
"module": "ESNext",
1111
"moduleResolution": "Bundler",
1212
"resolveJsonModule": true,
1313
"isolatedModules": true,
1414
"jsx": "preserve",
15-
"incremental": true
15+
"incremental": true,
16+
"target": "ES2017"
1617
},
1718
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
1819
"exclude": ["node_modules"]

examples/solid/solid-start-streaming/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "ESNext",
44
"module": "ESNext",
5-
"moduleResolution": "node",
5+
"moduleResolution": "Bundler",
66
"allowSyntheticDefaultImports": true,
77
"esModuleInterop": true,
88
"jsx": "preserve",

examples/vue/2.6-basic/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Bundler",
66
"strict": true,
77
"jsx": "preserve",
88
"sourceMap": true,

examples/vue/2.7-basic/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Bundler",
66
"strict": true,
77
"jsx": "preserve",
88
"sourceMap": true,

examples/vue/dependent-queries/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Bundler",
66
"strict": true,
77
"jsx": "preserve",
88
"sourceMap": true,

examples/vue/simple/tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"moduleResolution": "Bundler",
66
"strict": true,
77
"jsx": "preserve",
88
"sourceMap": true,

integrations/angular-cli-19/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"declaration": false,
1414
"downlevelIteration": true,
1515
"experimentalDecorators": true,
16-
"moduleResolution": "node",
16+
"moduleResolution": "Bundler",
1717
"importHelpers": true,
1818
"target": "ES2022",
1919
"module": "ES2022",

integrations/react-next-14/tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "ES5",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,
77
"strict": true,
88
"forceConsistentCasingInFileNames": true,
99
"noEmit": true,
1010
"esModuleInterop": true,
11-
"module": "esnext",
11+
"module": "ESNext",
1212
"moduleResolution": "Bundler",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,

0 commit comments

Comments
 (0)