From 89eea020a3723276495b950542e1c71f4ced781a Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Thu, 19 Dec 2024 09:49:47 +0800 Subject: [PATCH] feat(create-vite): extend from @vue/tsconfig to simplify tsconfig.app.json (#18862) --- packages/create-vite/template-vue-ts/package.json | 1 + .../create-vite/template-vue-ts/tsconfig.app.json | 14 +------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/create-vite/template-vue-ts/package.json b/packages/create-vite/template-vue-ts/package.json index 4a7b3016fc2990..728e6e120ff10d 100644 --- a/packages/create-vite/template-vue-ts/package.json +++ b/packages/create-vite/template-vue-ts/package.json @@ -13,6 +13,7 @@ }, "devDependencies": { "@vitejs/plugin-vue": "^5.2.1", + "@vue/tsconfig": "^0.7.0", "typescript": "~5.6.2", "vite": "^6.0.3", "vue-tsc": "^2.1.10" diff --git a/packages/create-vite/template-vue-ts/tsconfig.app.json b/packages/create-vite/template-vue-ts/tsconfig.app.json index 0a1fffd697a9ee..7fb078ce8d6401 100644 --- a/packages/create-vite/template-vue-ts/tsconfig.app.json +++ b/packages/create-vite/template-vue-ts/tsconfig.app.json @@ -1,19 +1,7 @@ { + "extends": "@vue/tsconfig/tsconfig.dom.json", "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - "target": "ES2020", - "useDefineForClassFields": true, - "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "isolatedModules": true, - "moduleDetection": "force", - "noEmit": true, - "jsx": "preserve", /* Linting */ "strict": true,