From 55daa829eeb79cf8ccd2345dfaacd4b3ba19a3bb Mon Sep 17 00:00:00 2001 From: IndexXuan Date: Wed, 21 Apr 2021 19:59:27 +0800 Subject: [PATCH] feat(plugin-typescript): add all recommended tsconfig --- .../cli-plugin-typescript/generator/template/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json b/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json index 9c4042b976..bc3cb7946b 100644 --- a/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json +++ b/packages/@vue/cli-plugin-typescript/generator/template/tsconfig.json @@ -4,7 +4,9 @@ "module": "esnext", "strict": true, "jsx": "preserve", + <%_ if (!options.useTsWithBabel) { _%> "importHelpers": true, + <%_ } _%> "moduleResolution": "node", <%_ if (options.classComponent) { _%> "experimentalDecorators": true, @@ -17,6 +19,7 @@ <%_ } _%> "esModuleInterop": true, "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, "useDefineForClassFields": true, "sourceMap": true, "baseUrl": ".",