Skip to content

Commit 25fe4f3

Browse files
committed
optimize(projects): optimize import config
1 parent 34e1334 commit 25fe4f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/configs/import.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export async function createImportConfig(overrides: Record<string, string> = {})
99
'vite/**',
1010
'vitepress',
1111
'vitepress/**',
12+
'@vitejs/**',
1213
'vite-plugin-**',
1314
'vue',
1415
'@vue/**',
@@ -21,13 +22,14 @@ export async function createImportConfig(overrides: Record<string, string> = {})
2122
'naive-ui',
2223
'element-plus',
2324
'ant-design-vue',
25+
'soy-ui',
26+
'@soy-ui/**',
2427
'soybean-ui',
2528
'@soybean-ui/**',
26-
'soy-ui',
27-
'@soy-ui/**'
29+
'@soybeanjs/**'
2830
];
2931
const externalReact = ['react', 'react-dom', 'react-router-dom', 'react-query', 'react-i18next', 'antd'];
30-
const externalCommon = ['lodash-es', 'es-toolkit', 'date-fns', 'dayjs', 'axios', '@tanstack/**', 'zod', 'valibot'];
32+
const externalCommon = ['axios', 'es-toolkit', 'date-fns', 'dayjs', 'lodash-es', '@tanstack/**', 'zod', 'valibot'];
3133
const internals = [
3234
'@/constant',
3335
'@/constant/**',

0 commit comments

Comments
 (0)