From 993d657cf39f97b785be8036955962c0b024502b Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Sat, 17 Sep 2022 01:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7:=20=E7=A7=BB=E9=99=A4=20vite-plugi?= =?UTF-8?q?n-dts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - package/component/script/build.all.ts | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/package.json b/package.json index 1c5328b0..0c1433eb 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "@vitejs/plugin-vue-jsx": "^1.3.10", "@vue/compiler-sfc": "3.2.37", "@vue/server-renderer": "3.2.37", - "vite-plugin-dts": "^1.5.0", "less": "^4.1.3", "rimraf": "^3.0.2", "rollup": "^2.75.5", diff --git a/package/component/script/build.all.ts b/package/component/script/build.all.ts index c3090767..dd6ba395 100644 --- a/package/component/script/build.all.ts +++ b/package/component/script/build.all.ts @@ -1,7 +1,6 @@ import { UserConfigExport } from "vite"; import vue from "@vitejs/plugin-vue"; import vueJsx from "@vitejs/plugin-vue-jsx"; -import dts from "vite-plugin-dts"; import path, { resolve } from "path"; export default (): UserConfigExport => { @@ -18,22 +17,6 @@ export default (): UserConfigExport => { plugins: [ vue(), vueJsx(), - dts({ - outputDir: ["types"], - insertTypesEntry: true, - cleanVueFileName: true, - copyDtsFiles: true, - include: ["src"], - beforeWriteFile: (filePath: string, content: string) => { - return { - filePath: filePath.replace( - `${path.sep}package${path.sep}component${path.sep}src`, - "" - ), - content: content, - }; - }, - }), ], build: { cssCodeSplit: false,