🔧: 移除 vite-plugin-dts
This commit is contained in:
parent
db7e233a2a
commit
993d657cf3
@ -54,7 +54,6 @@
|
|||||||
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
"@vitejs/plugin-vue-jsx": "^1.3.10",
|
||||||
"@vue/compiler-sfc": "3.2.37",
|
"@vue/compiler-sfc": "3.2.37",
|
||||||
"@vue/server-renderer": "3.2.37",
|
"@vue/server-renderer": "3.2.37",
|
||||||
"vite-plugin-dts": "^1.5.0",
|
|
||||||
"less": "^4.1.3",
|
"less": "^4.1.3",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"rollup": "^2.75.5",
|
"rollup": "^2.75.5",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { UserConfigExport } from "vite";
|
import { UserConfigExport } from "vite";
|
||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
import vueJsx from "@vitejs/plugin-vue-jsx";
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||||||
import dts from "vite-plugin-dts";
|
|
||||||
import path, { resolve } from "path";
|
import path, { resolve } from "path";
|
||||||
|
|
||||||
export default (): UserConfigExport => {
|
export default (): UserConfigExport => {
|
||||||
@ -18,22 +17,6 @@ export default (): UserConfigExport => {
|
|||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
vueJsx(),
|
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: {
|
build: {
|
||||||
cssCodeSplit: false,
|
cssCodeSplit: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user