chore: 🔨 关闭自动导入的自动生成

Former-commit-id: f86f099190
This commit is contained in:
haoxr 2023-06-03 13:31:30 +08:00
parent 596cf6542d
commit 56a2585653
1 changed files with 5 additions and 3 deletions

View File

@ -71,7 +71,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
IconsResolver({}),
],
vueTemplate: true, // 是否在 vue 模板中自动导入
dts: path.resolve(pathSrc, "types", "auto-imports.d.ts"), // 自动导入组件类型声明文件位置,默认根目录; false 关闭自动生成
dts: false, // 关闭自动生成
//dts: path.resolve(pathSrc, "types", "auto-imports.d.ts"), // 自动导入组件类型声明文件位置,默认根目录
}),
Components({
@ -83,7 +84,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 自动导入 Element Plus 组件
ElementPlusResolver(),
],
dts: path.resolve(pathSrc, "types", "components.d.ts"), // 自动导入组件类型声明文件位置,默认根目录; false 关闭自动生成
dts: false, // 关闭自动生成
// dts: path.resolve(pathSrc, "types", "components.d.ts"), // 自动导入组件类型声明文件位置,默认根目录
}),
Icons({
@ -149,7 +151,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
"@wangeditor/editor",
"@wangeditor/editor-for-vue",
"vue-i18n",
'codemirror'
"codemirror",
],
},
};