File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ import Vue from 'vue'
50
50
51
51
// ES build is more efficient by reducing unneeded components with tree-shaking.
52
52
// (Needs Webpack 2 or Rollup)
53
- import BootstrapVue from ' bootstrap-vue/dist/bootstrap-vue.es ' ;
53
+ import BootstrapVue from ' bootstrap-vue/dist/bootstrap-vue.esm ' ;
54
54
55
55
// Use commonjs version if es build is not working
56
- // import BootstrapVue from 'bootstrap-vue';
56
+ import BootstrapVue from ' bootstrap-vue' ;
57
57
58
58
// Import styles if style-loader is available
59
59
// You have to manually add css files if lines below are not working
@@ -87,7 +87,7 @@ Choosing the best variant for your build environment helps even less bundle size
87
87
88
88
Variant | Environments | Usage
89
89
------------|------------------------------|------------------------------------------------------------------------
90
- ES Module | Webpack 2 / Rollup | ` import bootstrap-vue from 'bootstrap-vue/dist/bootstrap-vue.es.js `
90
+ ES Module | Webpack 2 / Rollup | ` import bootstrap-vue from 'bootstrap-vue/dist/bootstrap-vue.esm `
91
91
commonjs2 | Webpack 1 / Other Bundlers | ` import bootstrap-vue from 'bootstrap-vue `
92
92
UMD | Browser | ` <script src="https://unpkg.com/bootstrap-vue/dist/bootstrap-vue.js"></script> `
93
93
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ rollup(config).then(bundle => {
15
15
16
16
bundle . write ( {
17
17
format : 'es' ,
18
- dest : path . resolve ( dist , config . moduleName + '.es .js' ) ,
18
+ dest : path . resolve ( dist , config . moduleName + '.esm .js' ) ,
19
19
sourceMap : true
20
20
} ) . catch ( console . error ) ;
21
21
Original file line number Diff line number Diff line change 40
40
41
41
// ES build is more efficient by reducing unneeded components with tree-shaking.
42
42
// (Needs Webpack 2 or Rollup)
43
- import BootstrapVue from 'bootstrap-vue/dist/bootstrap-vue.es ';
43
+ import BootstrapVue from 'bootstrap-vue/dist/bootstrap-vue.esm ';
44
44
45
45
// Use commonjs version if es build is not working
46
- // import BootstrapVue from 'bootstrap-vue';
46
+ import BootstrapVue from 'bootstrap-vue';
47
47
48
48
// Import styles if style-loader is available
49
49
// You have to manually add css files if lines below are not working
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue' ;
2
- import BootstrapVue from '../../dist/bootstrap-vue.es ' ;
2
+ import BootstrapVue from '../../index ' ;
3
3
4
4
Vue . use ( BootstrapVue ) ;
Original file line number Diff line number Diff line change 4
4
"description" : " Bootstrap 4 Components for Vue.js 2" ,
5
5
"main" : " dist/bootstrap-vue.common.js" ,
6
6
"web" :" dist/bootstrap-vue.js" ,
7
- "module" :" dist/bootstrap-vue.es .js" ,
8
- "jsnext:main" :" dist/bootstrap-vue.es .js" ,
7
+ "module" :" dist/bootstrap-vue.esm .js" ,
8
+ "jsnext:main" :" dist/bootstrap-vue.esm .js" ,
9
9
"style" :" dist/bootstrap-vue.css" ,
10
10
"license" : " MIT" ,
11
11
"homepage" : " https://bootstrap-vue.github.io" ,
You can’t perform that action at this time.
0 commit comments