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'
1111// --- Utility methods ---
1212
1313// Converts PascalCase or camelCase to kebab-case
14- export const kebabCase = str => {
14+ const kebabCase = str => {
1515 return str . replace ( RX_HYPHENATE , '-$1' ) . toLowerCase ( )
1616}
1717
1818// Converts a kebab-case or camelCase string to PascalCase
19- export const pascalCase = str => {
19+ const pascalCase = str => {
2020 str = kebabCase ( str ) . replace ( RX_UN_KEBAB , ( _ , c ) => ( c ? c . toUpperCase ( ) : '' ) )
2121 return str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 )
2222}
@@ -161,7 +161,8 @@ module.exports = function nuxtBootstrapVue(moduleOptions = {}) {
161161 if (
162162 templateOptions . treeShake &&
163163 templateOptions . icons &&
164- templateOptions . componentPlugins . indexOf ( 'IconsPlugin' ) === - 1
164+ templateOptions . componentPlugins . indexOf ( 'IconsPlugin' ) === - 1 &&
165+ templateOptions . componentPlugins . indexOf ( 'BootstrapVueIcons' ) === - 1
165166 ) {
166167 templateOptions . componentPlugins . push ( 'IconsPlugin' )
167168 }
You can’t perform that action at this time.
0 commit comments