File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ const srcIndex = 'bootstrap-vue/src/index.js'
11
11
// --- Utility methods ---
12
12
13
13
// Converts PascalCase or camelCase to kebab-case
14
- export const kebabCase = str => {
14
+ const kebabCase = str => {
15
15
return str . replace ( RX_HYPHENATE , '-$1' ) . toLowerCase ( )
16
16
}
17
17
18
18
// Converts a kebab-case or camelCase string to PascalCase
19
- export const pascalCase = str => {
19
+ const pascalCase = str => {
20
20
str = kebabCase ( str ) . replace ( RX_UN_KEBAB , ( _ , c ) => ( c ? c . toUpperCase ( ) : '' ) )
21
21
return str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 )
22
22
}
@@ -161,7 +161,8 @@ module.exports = function nuxtBootstrapVue(moduleOptions = {}) {
161
161
if (
162
162
templateOptions . treeShake &&
163
163
templateOptions . icons &&
164
- templateOptions . componentPlugins . indexOf ( 'IconsPlugin' ) === - 1
164
+ templateOptions . componentPlugins . indexOf ( 'IconsPlugin' ) === - 1 &&
165
+ templateOptions . componentPlugins . indexOf ( 'BootstrapVueIcons' ) === - 1
165
166
) {
166
167
templateOptions . componentPlugins . push ( 'IconsPlugin' )
167
168
}
You can’t perform that action at this time.
0 commit comments