Skip to content

Commit

Permalink
fix(nuxt module): remove unnecessary export statements (#4624)
Browse files Browse the repository at this point in the history
* fix(nuxt module): remove unnecessary export statements

* Update index.js

* Update index.js

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
  • Loading branch information
tmorehouse and jacobmllr95 committed Jan 14, 2020
1 parent 3749a68 commit 27f066c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nuxt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const srcIndex = 'bootstrap-vue/src/index.js'
// --- Utility methods ---

// Converts PascalCase or camelCase to kebab-case
export const kebabCase = str => {
const kebabCase = str => {
return str.replace(RX_HYPHENATE, '-$1').toLowerCase()
}

// Converts a kebab-case or camelCase string to PascalCase
export const pascalCase = str => {
const pascalCase = str => {
str = kebabCase(str).replace(RX_UN_KEBAB, (_, c) => (c ? c.toUpperCase() : ''))
return str.charAt(0).toUpperCase() + str.slice(1)
}
Expand Down Expand Up @@ -161,7 +161,8 @@ module.exports = function nuxtBootstrapVue(moduleOptions = {}) {
if (
templateOptions.treeShake &&
templateOptions.icons &&
templateOptions.componentPlugins.indexOf('IconsPlugin') === -1
templateOptions.componentPlugins.indexOf('IconsPlugin') === -1 &&
templateOptions.componentPlugins.indexOf('BootstrapVueIcons') === -1
) {
templateOptions.componentPlugins.push('IconsPlugin')
}
Expand Down

0 comments on commit 27f066c

Please sign in to comment.