From b0dcd831f6f81fbf029536d45f774e5cd8bd5cf0 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Sat, 24 Aug 2024 16:21:26 +0200 Subject: [PATCH] fix(tsconfig): set "module" to "ESNext" for web/tsconfig.json (#11368) --- __fixtures__/fragment-test-project/web/tsconfig.json | 6 +++--- __fixtures__/test-project-rsa/web/tsconfig.json | 6 +++--- .../test-project-rsc-kitchen-sink/web/tsconfig.json | 6 +++--- __fixtures__/test-project/web/tsconfig.json | 2 +- packages/create-redwood-app/templates/js/web/jsconfig.json | 2 +- packages/create-redwood-app/templates/ts/web/tsconfig.json | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/__fixtures__/fragment-test-project/web/tsconfig.json b/__fixtures__/fragment-test-project/web/tsconfig.json index b6b53c03d1f4..77422d411aba 100644 --- a/__fixtures__/fragment-test-project/web/tsconfig.json +++ b/__fixtures__/fragment-test-project/web/tsconfig.json @@ -3,9 +3,9 @@ "noEmit": true, "allowJs": true, "esModuleInterop": true, - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", "baseUrl": "./", "skipLibCheck": false, "rootDirs": [ diff --git a/__fixtures__/test-project-rsa/web/tsconfig.json b/__fixtures__/test-project-rsa/web/tsconfig.json index d032130dce60..f43073b71bb6 100644 --- a/__fixtures__/test-project-rsa/web/tsconfig.json +++ b/__fixtures__/test-project-rsa/web/tsconfig.json @@ -3,9 +3,9 @@ "noEmit": true, "allowJs": true, "esModuleInterop": true, - "target": "esnext", - "module": "NodeNext", - "moduleResolution": "NodeNext", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", "skipLibCheck": false, "rootDirs": [ "./src", diff --git a/__fixtures__/test-project-rsc-kitchen-sink/web/tsconfig.json b/__fixtures__/test-project-rsc-kitchen-sink/web/tsconfig.json index d032130dce60..f43073b71bb6 100644 --- a/__fixtures__/test-project-rsc-kitchen-sink/web/tsconfig.json +++ b/__fixtures__/test-project-rsc-kitchen-sink/web/tsconfig.json @@ -3,9 +3,9 @@ "noEmit": true, "allowJs": true, "esModuleInterop": true, - "target": "esnext", - "module": "NodeNext", - "moduleResolution": "NodeNext", + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", "skipLibCheck": false, "rootDirs": [ "./src", diff --git a/__fixtures__/test-project/web/tsconfig.json b/__fixtures__/test-project/web/tsconfig.json index 71b1598043b4..512f248cd593 100644 --- a/__fixtures__/test-project/web/tsconfig.json +++ b/__fixtures__/test-project/web/tsconfig.json @@ -4,7 +4,7 @@ "allowJs": true, "esModuleInterop": true, "target": "ES2022", - "module": "ES2022", + "module": "ESNext", "moduleResolution": "Bundler", "skipLibCheck": false, "rootDirs": [ diff --git a/packages/create-redwood-app/templates/js/web/jsconfig.json b/packages/create-redwood-app/templates/js/web/jsconfig.json index 09e018949019..fbf497d1bf1e 100644 --- a/packages/create-redwood-app/templates/js/web/jsconfig.json +++ b/packages/create-redwood-app/templates/js/web/jsconfig.json @@ -3,7 +3,7 @@ "noEmit": true, "esModuleInterop": true, "target": "ES2022", - "module": "ES2022", + "module": "ESNext", "moduleResolution": "Bundler", "skipLibCheck": false, "rootDirs": [ diff --git a/packages/create-redwood-app/templates/ts/web/tsconfig.json b/packages/create-redwood-app/templates/ts/web/tsconfig.json index 71b1598043b4..512f248cd593 100644 --- a/packages/create-redwood-app/templates/ts/web/tsconfig.json +++ b/packages/create-redwood-app/templates/ts/web/tsconfig.json @@ -4,7 +4,7 @@ "allowJs": true, "esModuleInterop": true, "target": "ES2022", - "module": "ES2022", + "module": "ESNext", "moduleResolution": "Bundler", "skipLibCheck": false, "rootDirs": [