Skip to content

Commit e8520dc

Browse files
BenediktHeinrichsHeinrichs
andauthored
feat(bootstrap-vue): new resolver (#410)
Co-authored-by: Heinrichs <[email protected]>
1 parent 80e2d86 commit e8520dc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/core/resolvers/bootstrap-vue.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { ComponentResolver } from '../../types'
2+
3+
/**
4+
* Resolver for BootstrapVue
5+
*
6+
* @link https://github.com/bootstrap-vue/bootstrap-vue
7+
*/
8+
export function BootstrapVueResolver(): ComponentResolver {
9+
return {
10+
type: 'component',
11+
resolve: (name: string) => {
12+
if (name.match(/^B[A-Z]/))
13+
return { name, from: 'bootstrap-vue' }
14+
},
15+
}
16+
}

src/core/resolvers/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ export * from './devui'
1717
export * from './arco'
1818
export * from './tdesign'
1919
export * from './layui-vue'
20+
export * from './bootstrap-vue'

0 commit comments

Comments
 (0)