mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 21:47:55 +08:00
14 lines
415 B
JavaScript
14 lines
415 B
JavaScript
import components from 'unplugin-vue-components/vite'
|
|
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
|
|
export default function createComponents(isBuild) {
|
|
const resolvers = []
|
|
isBuild && resolvers.push(ElementPlusResolver())
|
|
return components({
|
|
resolvers,
|
|
dirs: ['src/components'],
|
|
include: [/\.vue$/, /\.vue\?vue/, /\.jsx$/],
|
|
dts: false
|
|
})
|
|
}
|