From c8ed1a3722065be45a559c8cf64f15d3a29fa15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Mi=C5=9Btal?= Date: Sun, 26 Nov 2023 16:15:25 +0100 Subject: [PATCH] Set module to `NodeNext` in template tsconfigs --- create-vite-express/templates/react-ts/tsconfig.json | 2 +- create-vite-express/templates/vanilla-ts/tsconfig.json | 2 +- create-vite-express/templates/vue-ts/tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/create-vite-express/templates/react-ts/tsconfig.json b/create-vite-express/templates/react-ts/tsconfig.json index 115541a..74c1f05 100644 --- a/create-vite-express/templates/react-ts/tsconfig.json +++ b/create-vite-express/templates/react-ts/tsconfig.json @@ -9,7 +9,7 @@ "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, - "module": "CommonJS", + "module": "NodeNext", "moduleResolution": "NodeNext", "resolveJsonModule": true, "isolatedModules": true, diff --git a/create-vite-express/templates/vanilla-ts/tsconfig.json b/create-vite-express/templates/vanilla-ts/tsconfig.json index acd8c1d..3df50bf 100644 --- a/create-vite-express/templates/vanilla-ts/tsconfig.json +++ b/create-vite-express/templates/vanilla-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "module": "CommonJS", + "module": "NodeNext", "lib": ["ESNext", "DOM"], "moduleResolution": "NodeNext", "strict": true, diff --git a/create-vite-express/templates/vue-ts/tsconfig.json b/create-vite-express/templates/vue-ts/tsconfig.json index f765b60..b61c0e1 100644 --- a/create-vite-express/templates/vue-ts/tsconfig.json +++ b/create-vite-express/templates/vue-ts/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "module": "CommonJS", + "module": "NodeNext", "moduleResolution": "NodeNext", "strict": true, "jsx": "preserve",