Skip to content
Permalink
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>
  • Loading branch information
tmorehouse and jacobmllr95 committed Jan 14, 2020
1 parent 3749a68 commit 27f066cfa07ee311fe1e312d9a9ebd0eb76750c7
Showing with 4 additions and 3 deletions.
  1. +4 −3 nuxt/index.js
@@ -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)
}
@@ -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')
}

0 comments on commit 27f066c

Please sign in to comment.