From b0fc6e3c2591a30360d3714263cf7cc0e2acbfdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Tue, 26 Nov 2024 18:23:37 +0100 Subject: [PATCH] revert: update moduleResolution value casing (#18409) (#18774) --- docs/.vitepress/tsconfig.json | 2 +- docs/guide/performance.md | 2 +- packages/create-vite/template-lit-ts/tsconfig.json | 2 +- packages/create-vite/template-preact-ts/tsconfig.app.json | 2 +- packages/create-vite/template-preact-ts/tsconfig.node.json | 2 +- packages/create-vite/template-qwik-ts/tsconfig.app.json | 2 +- packages/create-vite/template-qwik-ts/tsconfig.node.json | 2 +- packages/create-vite/template-react-ts/tsconfig.app.json | 2 +- packages/create-vite/template-react-ts/tsconfig.node.json | 2 +- packages/create-vite/template-solid-ts/tsconfig.app.json | 2 +- packages/create-vite/template-solid-ts/tsconfig.node.json | 2 +- packages/create-vite/template-svelte-ts/tsconfig.node.json | 2 +- packages/create-vite/template-svelte/jsconfig.json | 2 +- packages/create-vite/template-vanilla-ts/tsconfig.json | 2 +- packages/create-vite/template-vue-ts/tsconfig.app.json | 2 +- packages/create-vite/template-vue-ts/tsconfig.node.json | 2 +- packages/create-vite/tsconfig.json | 2 +- packages/plugin-legacy/tsconfig.json | 2 +- packages/vite/tsconfig.base.json | 2 +- packages/vite/tsconfig.check.json | 2 +- playground/tsconfig-json-load-error/tsconfig.json | 2 +- playground/tsconfig-json/nested/tsconfig.json | 2 +- playground/tsconfig-json/tsconfig.json | 2 +- playground/tsconfig.json | 2 +- scripts/tsconfig.json | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/docs/.vitepress/tsconfig.json b/docs/.vitepress/tsconfig.json index 20b9618d576e3e..d6ac8578776fb9 100644 --- a/docs/.vitepress/tsconfig.json +++ b/docs/.vitepress/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ES2022", "module": "ESNext", - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "noImplicitOverride": true, "noUnusedLocals": true, diff --git a/docs/guide/performance.md b/docs/guide/performance.md index 92cb92f8bda52c..847a4d206b482a 100644 --- a/docs/guide/performance.md +++ b/docs/guide/performance.md @@ -52,7 +52,7 @@ Hence, it's usually better to be explicit with your import paths, e.g. `import ' If you're a plugin author, make sure to only call [`this.resolve`](https://rollupjs.org/plugin-development/#this-resolve) when needed to reduce the number of checks above. ::: tip TypeScript -If you are using TypeScript, enable `"moduleResolution": "Bundler"` and `"allowImportingTsExtensions": true` in your `tsconfig.json`'s `compilerOptions` to use `.ts` and `.tsx` extensions directly in your code. +If you are using TypeScript, enable `"moduleResolution": "bundler"` and `"allowImportingTsExtensions": true` in your `tsconfig.json`'s `compilerOptions` to use `.ts` and `.tsx` extensions directly in your code. ::: ## Avoid Barrel Files diff --git a/packages/create-vite/template-lit-ts/tsconfig.json b/packages/create-vite/template-lit-ts/tsconfig.json index 784b1d49e4389b..cdb96f378932d8 100644 --- a/packages/create-vite/template-lit-ts/tsconfig.json +++ b/packages/create-vite/template-lit-ts/tsconfig.json @@ -8,7 +8,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-preact-ts/tsconfig.app.json b/packages/create-vite/template-preact-ts/tsconfig.app.json index 00a7cc1e9e6de0..d5cbc232e38af5 100644 --- a/packages/create-vite/template-preact-ts/tsconfig.app.json +++ b/packages/create-vite/template-preact-ts/tsconfig.app.json @@ -12,7 +12,7 @@ }, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-preact-ts/tsconfig.node.json b/packages/create-vite/template-preact-ts/tsconfig.node.json index abcd7f0dacddc7..db0becc8b033a4 100644 --- a/packages/create-vite/template-preact-ts/tsconfig.node.json +++ b/packages/create-vite/template-preact-ts/tsconfig.node.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-qwik-ts/tsconfig.app.json b/packages/create-vite/template-qwik-ts/tsconfig.app.json index 0d65579a463d96..ac43c10deb7c8b 100644 --- a/packages/create-vite/template-qwik-ts/tsconfig.app.json +++ b/packages/create-vite/template-qwik-ts/tsconfig.app.json @@ -8,7 +8,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-qwik-ts/tsconfig.node.json b/packages/create-vite/template-qwik-ts/tsconfig.node.json index abcd7f0dacddc7..db0becc8b033a4 100644 --- a/packages/create-vite/template-qwik-ts/tsconfig.node.json +++ b/packages/create-vite/template-qwik-ts/tsconfig.node.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-react-ts/tsconfig.app.json b/packages/create-vite/template-react-ts/tsconfig.app.json index f867de0dd1a838..358ca9ba93f089 100644 --- a/packages/create-vite/template-react-ts/tsconfig.app.json +++ b/packages/create-vite/template-react-ts/tsconfig.app.json @@ -8,7 +8,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-react-ts/tsconfig.node.json b/packages/create-vite/template-react-ts/tsconfig.node.json index abcd7f0dacddc7..db0becc8b033a4 100644 --- a/packages/create-vite/template-react-ts/tsconfig.node.json +++ b/packages/create-vite/template-react-ts/tsconfig.node.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-solid-ts/tsconfig.app.json b/packages/create-vite/template-solid-ts/tsconfig.app.json index c811fcbb39008c..542583a5f2fda4 100644 --- a/packages/create-vite/template-solid-ts/tsconfig.app.json +++ b/packages/create-vite/template-solid-ts/tsconfig.app.json @@ -8,7 +8,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-solid-ts/tsconfig.node.json b/packages/create-vite/template-solid-ts/tsconfig.node.json index abcd7f0dacddc7..db0becc8b033a4 100644 --- a/packages/create-vite/template-solid-ts/tsconfig.node.json +++ b/packages/create-vite/template-solid-ts/tsconfig.node.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-svelte-ts/tsconfig.node.json b/packages/create-vite/template-svelte-ts/tsconfig.node.json index 408b690312ad59..46d1fa3b16d5a7 100644 --- a/packages/create-vite/template-svelte-ts/tsconfig.node.json +++ b/packages/create-vite/template-svelte-ts/tsconfig.node.json @@ -4,7 +4,7 @@ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", "skipLibCheck": true, "module": "ESNext", - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "noEmit": true, "noUncheckedSideEffectImports": true diff --git a/packages/create-vite/template-svelte/jsconfig.json b/packages/create-vite/template-svelte/jsconfig.json index 32d1e90f514aba..5696a2de74a0cd 100644 --- a/packages/create-vite/template-svelte/jsconfig.json +++ b/packages/create-vite/template-svelte/jsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "target": "ESNext", "module": "ESNext", /** diff --git a/packages/create-vite/template-vanilla-ts/tsconfig.json b/packages/create-vite/template-vanilla-ts/tsconfig.json index 8847c9afe472d1..a4883f28e65586 100644 --- a/packages/create-vite/template-vanilla-ts/tsconfig.json +++ b/packages/create-vite/template-vanilla-ts/tsconfig.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-vue-ts/tsconfig.app.json b/packages/create-vite/template-vue-ts/tsconfig.app.json index cb88a5a6c26b25..0a1fffd697a9ee 100644 --- a/packages/create-vite/template-vue-ts/tsconfig.app.json +++ b/packages/create-vite/template-vue-ts/tsconfig.app.json @@ -8,7 +8,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/template-vue-ts/tsconfig.node.json b/packages/create-vite/template-vue-ts/tsconfig.node.json index abcd7f0dacddc7..db0becc8b033a4 100644 --- a/packages/create-vite/template-vue-ts/tsconfig.node.json +++ b/packages/create-vite/template-vue-ts/tsconfig.node.json @@ -7,7 +7,7 @@ "skipLibCheck": true, /* Bundler mode */ - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "isolatedModules": true, "moduleDetection": "force", diff --git a/packages/create-vite/tsconfig.json b/packages/create-vite/tsconfig.json index e5fad42f3ca792..9fc23ebe675e0f 100644 --- a/packages/create-vite/tsconfig.json +++ b/packages/create-vite/tsconfig.json @@ -4,7 +4,7 @@ "outDir": "dist", "target": "ES2022", "module": "ES2020", - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "skipLibCheck": true, "declaration": false, diff --git a/packages/plugin-legacy/tsconfig.json b/packages/plugin-legacy/tsconfig.json index 95d499371d8a94..e4b331d3c7d139 100644 --- a/packages/plugin-legacy/tsconfig.json +++ b/packages/plugin-legacy/tsconfig.json @@ -5,7 +5,7 @@ "outDir": "dist", "target": "ES2020", "module": "ES2020", - "moduleResolution": "Node", + "moduleResolution": "node", "strict": true, "declaration": true, "sourceMap": true, diff --git a/packages/vite/tsconfig.base.json b/packages/vite/tsconfig.base.json index 9f6629981f2921..71dfbdf5495748 100644 --- a/packages/vite/tsconfig.base.json +++ b/packages/vite/tsconfig.base.json @@ -3,7 +3,7 @@ "rootDir": ".", "target": "ES2022", "module": "ESNext", - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "declaration": true, "noImplicitOverride": true, diff --git a/packages/vite/tsconfig.check.json b/packages/vite/tsconfig.check.json index 00893321152f6d..5065157b245a35 100644 --- a/packages/vite/tsconfig.check.json +++ b/packages/vite/tsconfig.check.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES2020", - "moduleResolution": "Node16", + "moduleResolution": "node16", "module": "Node16", "lib": ["ES2020", "WebWorker"], // ES2020 is very conservative check for client types, could be bumped if needed "types": [], // Avoid checking unrelated node_modules types diff --git a/playground/tsconfig-json-load-error/tsconfig.json b/playground/tsconfig-json-load-error/tsconfig.json index f1d91df8197cb9..3439b3583174de 100644 --- a/playground/tsconfig-json-load-error/tsconfig.json +++ b/playground/tsconfig-json-load-error/tsconfig.json @@ -3,7 +3,7 @@ "target": "ESNext", "module": "ESNext", "lib": ["ESNext", "DOM"], - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "sourceMap": true, "resolveJsonModule": true, diff --git a/playground/tsconfig-json/nested/tsconfig.json b/playground/tsconfig-json/nested/tsconfig.json index 20c07cac1af3ed..9d7016bdfc7b9e 100644 --- a/playground/tsconfig-json/nested/tsconfig.json +++ b/playground/tsconfig-json/nested/tsconfig.json @@ -5,7 +5,7 @@ "target": "ESNext", "module": "ESNext", "lib": ["ESNext", "DOM"], - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "sourceMap": true, "resolveJsonModule": true, diff --git a/playground/tsconfig-json/tsconfig.json b/playground/tsconfig-json/tsconfig.json index a901cbd3baa6a9..b6258de7350dc1 100644 --- a/playground/tsconfig-json/tsconfig.json +++ b/playground/tsconfig-json/tsconfig.json @@ -3,7 +3,7 @@ "target": "ESNext", "module": "ESNext", "lib": ["ESNext", "DOM"], - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "strict": true, "sourceMap": true, "resolveJsonModule": true, diff --git a/playground/tsconfig.json b/playground/tsconfig.json index a33a007313c9af..e45775a61ff855 100644 --- a/playground/tsconfig.json +++ b/playground/tsconfig.json @@ -10,7 +10,7 @@ "allowJs": true, "esModuleInterop": true, "resolveJsonModule": true, - "moduleResolution": "Bundler", + "moduleResolution": "bundler", "skipLibCheck": true, "noUnusedLocals": true, "jsx": "preserve", diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 224db1f6787c05..6ef8986ee8b361 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -4,7 +4,7 @@ "compilerOptions": { "module": "ES2022", "target": "ES2020", - "moduleResolution": "Node", + "moduleResolution": "node", "strict": true, "esModuleInterop": true, "skipLibCheck": true,