File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,13 @@ const pluginTemplateFn = _template(`// --- BEGIN AUTO-GENERATED FILE ---
6363
6464import { pluginFactory } from '../utils/plugins'
6565
66+ // Icon helper component
6667import { BIcon } from './icon'
6768
6869import {
70+ // BootstrapVue custom icons
6971 BIconBlank,
72+ // Bootsttap icons
7073 <%= componentNames.join(',\\n ') %>
7174} from './icons'
7275
@@ -77,8 +80,24 @@ export const iconComponents = {
7780 <%= componentNames.join(',\\n ') %>
7881}
7982
83+ export const iconComponentNames = [
84+ // BootstrapVue custom icons
85+ 'BIconBlank',
86+ // Bootsttap icons
87+ <%= componentNames.map(n => ("'" + n + "'")).join(',\\n ') %>
88+ ]
89+
8090// Export the icons plugin
81- export const IconsPlugin = /*#__PURE__*/ pluginFactory({ components: iconComponents })
91+ export const IconsPlugin = /*#__PURE__*/ pluginFactory({
92+ components: {
93+ // Icon helper component
94+ BIcon,
95+ // BootstrapVue custom icons
96+ BIconBlank,
97+ // Bootsttap icons
98+ <%= componentNames.join(',\\n ') %>
99+ }
100+ })
82101
83102// --- END AUTO-GENERATED FILE ---
84103` )
You can’t perform that action at this time.
0 commit comments