Skip to content

Commit 2ac11a3

Browse files
author
Pooya Parsa
committed
Minor fixes
1 parent 6a9b7fa commit 2ac11a3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ import Vue from 'vue'
5050

5151
// ES build is more efficient by reducing unneeded components with tree-shaking.
5252
// (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';
5454

5555
// Use commonjs version if es build is not working
56-
// import BootstrapVue from 'bootstrap-vue';
56+
import BootstrapVue from 'bootstrap-vue';
5757

5858
// Import styles if style-loader is available
5959
// 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
8787

8888
Variant | Environments | Usage
8989
------------|------------------------------|------------------------------------------------------------------------
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`
9191
commonjs2 | Webpack 1 / Other Bundlers | `import bootstrap-vue from 'bootstrap-vue`
9292
UMD | Browser | `<script src="https://unpkg.com/bootstrap-vue/dist/bootstrap-vue.js"></script>`
9393

build/rollup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rollup(config).then(bundle => {
1515

1616
bundle.write({
1717
format: 'es',
18-
dest: path.resolve(dist, config.moduleName + '.es.js'),
18+
dest: path.resolve(dist, config.moduleName + '.esm.js'),
1919
sourceMap: true
2020
}).catch(console.error);
2121

docs/pages/docs/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040

4141
// ES build is more efficient by reducing unneeded components with tree-shaking.
4242
// (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';
4444

4545
// Use commonjs version if es build is not working
46-
// import BootstrapVue from 'bootstrap-vue';
46+
import BootstrapVue from 'bootstrap-vue';
4747

4848
// Import styles if style-loader is available
4949
// You have to manually add css files if lines below are not working

docs/plugins/bootstrap-vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Vue from 'vue';
2-
import BootstrapVue from '../../dist/bootstrap-vue.es';
2+
import BootstrapVue from '../../index';
33

44
Vue.use(BootstrapVue);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Bootstrap 4 Components for Vue.js 2",
55
"main": "dist/bootstrap-vue.common.js",
66
"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",
99
"style":"dist/bootstrap-vue.css",
1010
"license": "MIT",
1111
"homepage": "https://bootstrap-vue.github.io",

0 commit comments

Comments
 (0)