🔧: 移除 vite-plugin-dts

This commit is contained in:
sight 2022-09-17 01:54:07 +08:00
parent db7e233a2a
commit 993d657cf3
2 changed files with 0 additions and 18 deletions

View File

@ -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",

View File

@ -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,