From a5ff1f1b8370c9ebf7bb52e7360d6a5458e2bab8 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Sat, 10 Aug 2019 19:20:24 -0300 Subject: [PATCH 1/4] chore(plugin): add NAME option to vueUse --- src/utils/plugins.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/plugins.js b/src/utils/plugins.js index ad2998e445e..afa6360b56d 100644 --- a/src/utils/plugins.js +++ b/src/utils/plugins.js @@ -129,4 +129,7 @@ export const vueUse = VuePlugin => { if (hasWindowSupport && window.Vue) { window.Vue.use(VuePlugin) } + if (hasWindowSupport && VuePlugin.NAME) { + window[VuePlugin.NAME] = VuePlugin + } } From 9011e32bb89f4174a92e17bd8783ffc20e26cc41 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Sat, 10 Aug 2019 19:22:38 -0300 Subject: [PATCH 2/4] Update plugins.js --- src/utils/plugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/plugins.js b/src/utils/plugins.js index afa6360b56d..6ae8fdefcb8 100644 --- a/src/utils/plugins.js +++ b/src/utils/plugins.js @@ -129,6 +129,7 @@ export const vueUse = VuePlugin => { if (hasWindowSupport && window.Vue) { window.Vue.use(VuePlugin) } + /* istanbul ignore next */ if (hasWindowSupport && VuePlugin.NAME) { window[VuePlugin.NAME] = VuePlugin } From b8f6b40497472f17e9cc7d7573c5e0c4591404b5 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Sat, 10 Aug 2019 19:28:29 -0300 Subject: [PATCH 3/4] Update index.js --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 5c194659be3..b2d7bb08e5e 100644 --- a/src/index.js +++ b/src/index.js @@ -4,6 +4,8 @@ import { componentsPlugin } from './components/index.esm' import { directivesPlugin } from './directives/index.esm' import BVConfigPlugin from './bv-config' +const NAME = 'BootstrapVue' + // Named exports of all components and component group plugins export * from './components/index.esm' @@ -16,6 +18,7 @@ const install = /*#__PURE__*/ installFactory({ plugins: { componentsPlugin, dire // BootstrapVue plugin const BootstrapVue = /*#__PURE__*/ { install: install, + NAME: NAME, // To be deprecated. not documented setConfig: setConfig } @@ -36,6 +39,7 @@ export { // BootstrapVue = require('bootstrap-vue').default // Vue.use(BootstrapVue) install, + NAME, // To be deprecated. not documented setConfig } From 3bebeb0d83f8556d7e5c1ec85cec0dc4e5a92b01 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Sun, 11 Aug 2019 18:02:20 -0300 Subject: [PATCH 4/4] Update index.js --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index b2d7bb08e5e..984d2bce184 100644 --- a/src/index.js +++ b/src/index.js @@ -17,10 +17,10 @@ const install = /*#__PURE__*/ installFactory({ plugins: { componentsPlugin, dire // BootstrapVue plugin const BootstrapVue = /*#__PURE__*/ { - install: install, - NAME: NAME, + install, + NAME, // To be deprecated. not documented - setConfig: setConfig + setConfig } // Named exports for BvConfigPlugin and BootstrapVue