Skip to content

Commit 27f066c

Browse files
fix(nuxt module): remove unnecessary export statements (#4624)
* fix(nuxt module): remove unnecessary export statements * Update index.js * Update index.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
1 parent 3749a68 commit 27f066c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nuxt/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)