mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-08 07:31:09 +08:00
build: 添加 antdv-next auto-import-resolver 依赖
更新 pnpm 工作区配置和 web-antd 应用依赖,以支持新的按需导入解析器。 同时更新 Vite 配置中的注释,将解析器从 `AntDesignVueResolver` 替换为 `AntdvNextResolver`。
This commit is contained in:
@@ -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:*",
|
||||
|
||||
@@ -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
|
||||
// }),
|
||||
// ],
|
||||
// }),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user