mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 08:34:08 +02:00
build bootstrap in esm
This commit is contained in:
@@ -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))
|
||||
})
|
||||
|
@@ -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/**'
|
||||
})
|
||||
|
Reference in New Issue
Block a user