diff --git a/packages/core/src/resolve/arco.ts b/packages/core/src/resolve/arco.ts new file mode 100644 index 0000000..0c842cd --- /dev/null +++ b/packages/core/src/resolve/arco.ts @@ -0,0 +1,15 @@ +import type { Lib } from '../typing' + +export function ArcoResolve(type = 'css'): Lib { + return { + libraryName: '@arco-design/web-vue', + esModule: true, + ensureStyleFile: true, + resolveStyle: (name) => { + if (type === 'css') { + return `@arco-design/web-vue/es/${name}/style/css.js` + } + return `@arco-design/web-vue/es/${name}/style/index.js` + }, + } +} diff --git a/packages/core/src/resolve/index.ts b/packages/core/src/resolve/index.ts index ddd05bd..853a513 100644 --- a/packages/core/src/resolve/index.ts +++ b/packages/core/src/resolve/index.ts @@ -4,3 +4,4 @@ export * from './elementPlus' export * from './vant' export * from './nutui' export * from './vxeTable' +export * from './arco'