🔧: 移除 vite-plugin-dts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user