aboutsummaryrefslogtreecommitdiff
path: root/js/tests/integration
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-03-01 11:11:41 +0200
committerXhmikosR <[email protected]>2019-03-11 17:59:08 +0200
commit2fd50f98a53874d89aa60c9a698464ce1a0b7bfc (patch)
tree198b94215d4cffce968b6c7b50f3d8855f5dc408 /js/tests/integration
parent3ffe3a5d82f6f561b82ff78d82b32a7d14aed558 (diff)
downloadbootstrap-2fd50f98a53874d89aa60c9a698464ce1a0b7bfc.tar.xz
bootstrap-2fd50f98a53874d89aa60c9a698464ce1a0b7bfc.zip
build bootstrap in esm
Diffstat (limited to 'js/tests/integration')
-rw-r--r--js/tests/integration/bundle.js6
-rw-r--r--js/tests/integration/rollup.bundle.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js
index 5597cd063..ace578b31 100644
--- a/js/tests/integration/bundle.js
+++ b/js/tests/integration/bundle.js
@@ -1,7 +1,9 @@
import 'popper.js'
-import bootstrap from '../../../dist/js/bootstrap'
+import {
+ Tooltip
+} from '../../../dist/js/bootstrap.esm.js'
window.addEventListener('load', () => {
[...document.querySelectorAll('[data-toggle="tooltip"]')]
- .map(tooltipNode => new bootstrap.Tooltip(tooltipNode))
+ .map(tooltipNode => new Tooltip(tooltipNode))
})
diff --git a/js/tests/integration/rollup.bundle.js b/js/tests/integration/rollup.bundle.js
index 783cc2ba0..4aa1dcde9 100644
--- a/js/tests/integration/rollup.bundle.js
+++ b/js/tests/integration/rollup.bundle.js
@@ -1,7 +1,6 @@
/* eslint-env node */
const resolve = require('rollup-plugin-node-resolve')
-const commonjs = require('rollup-plugin-commonjs')
const babel = require('rollup-plugin-babel')
module.exports = {
@@ -12,7 +11,6 @@ module.exports = {
},
plugins: [
resolve(),
- commonjs(),
babel({
exclude: 'node_modules/**'
})