build: 添加 antdv-next auto-import-resolver 依赖

更新 pnpm 工作区配置和 web-antd 应用依赖,以支持新的按需导入解析器。
同时更新 Vite 配置中的注释,将解析器从 `AntDesignVueResolver` 替换为 `AntdvNextResolver`。
This commit is contained in:
dap
2026-01-30 16:05:16 +08:00
parent 487dd67d76
commit cd908a967c
3 changed files with 4 additions and 3 deletions

View File

@@ -28,6 +28,7 @@
},
"dependencies": {
"@alova/adapter-axios": "catalog:",
"@antdv-next/auto-import-resolver": "catalog:",
"@antdv-next/icons": "catalog:",
"@tinymce/tinymce-vue": "catalog:",
"@vben/access": "workspace:*",

View File

@@ -1,7 +1,7 @@
import { defineConfig } from '@vben/vite-config';
// 自行取消注释来启用按需导入功能
// import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
// import { AntdvNextResolver } from '@antdv-next/auto-import-resolver'
// import Components from 'unplugin-vue-components/vite';
export default defineConfig(async () => {
@@ -13,10 +13,9 @@ export default defineConfig(async () => {
// dirs: [], // 默认会导入src/components目录下所有组件 不需要
// dts: './types/components.d.ts', // 输出类型文件
// resolvers: [
// AntDesignVueResolver({
// AntdvNextResolver({
// // 需要排除Button组件 全局已经默认导入了
// exclude: ['Button'],
// importStyle: false, // css in js
// }),
// ],
// }),

View File

@@ -22,6 +22,7 @@ overrides:
catalog:
'@alova/adapter-axios': ^2.0.17
'@antdv-next/auto-import-resolver': 1.0.0-rc.1
'@antdv-next/icons': 1.0.0-beta.1
'@ast-grep/napi': ^0.39.9
'@changesets/changelog-github': ^0.5.2