Skip to content

Commit dfaa408

Browse files
authored
chore: remove undocumented setConfig top level export (bootstrap-vue#3858)
1 parent 5b5f2b8 commit dfaa408

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

src/index.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { installFactory } from './utils/plugins'
2-
import { setConfig } from './utils/config-set'
32
import { componentsPlugin } from './components/index.esm'
43
import { directivesPlugin } from './directives/index.esm'
54
import BVConfigPlugin from './bv-config'
@@ -18,30 +17,26 @@ const install = /*#__PURE__*/ installFactory({ plugins: { componentsPlugin, dire
1817
// BootstrapVue plugin
1918
const BootstrapVue = /*#__PURE__*/ {
2019
install,
21-
NAME,
22-
// To be deprecated. not documented
23-
setConfig
20+
NAME
2421
}
2522

2623
// Named exports for BvConfigPlugin and BootstrapVue
2724
export {
25+
// Installer exported in case the consumer does not import `default`
26+
// as the plugin in CommonJS build (or does not have interop enabled
27+
// for CommonJS). Both the following will work:
28+
// BootstrapVue = require('bootstrap-vue')
29+
// BootstrapVue = require('bootstrap-vue').default
30+
// Vue.use(BootstrapVue)
31+
install,
32+
NAME,
2833
// BV Config Plugin
2934
BVConfigPlugin,
3035
// BVConfigPlugin has been documented as BVConfig as well,
3136
// so we add an alias to the shorter name for backwards compat
3237
BVConfigPlugin as BVConfig,
3338
// Main BootstrapVue Plugin
34-
BootstrapVue,
35-
// Installer and setConfig exported in case the consumer does not
36-
// import `default` as the plugin in CommonJS build (or does not
37-
// have interop enabled for CommonJS). Both the following will work:
38-
// BootstrapVue = require('bootstrap-vue')
39-
// BootstrapVue = require('bootstrap-vue').default
40-
// Vue.use(BootstrapVue)
41-
install,
42-
NAME,
43-
// To be deprecated. not documented
44-
setConfig
39+
BootstrapVue
4540
}
4641

4742
// Default export is the BootstrapVue plugin

0 commit comments

Comments
 (0)