Skip to content

Commit b26bba9

Browse files
author
puhui999
committed
移除vex hooks自动导入,修复打包报错
1 parent 7564c43 commit b26bba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/vite/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
1919

2020
export function createVitePlugins() {
2121
const root = process.cwd()
22+
2223
// 路径查找
2324
function pathResolve(dir: string) {
2425
return resolve(root, '.', dir)
2526
}
27+
2628
return [
2729
Vue(),
2830
VueJsx(),
@@ -45,8 +47,6 @@ export function createVitePlugins() {
4547
{
4648
'@/hooks/web/useI18n': ['useI18n'],
4749
'@/hooks/web/useMessage': ['useMessage'],
48-
'@/hooks/web/useXTable': ['useXTable'],
49-
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
5050
'@/hooks/web/useTable': ['useTable'],
5151
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
5252
'@/utils/formRules': ['required'],

0 commit comments

Comments
 (0)