mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-29 23:09:05 +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))
|
||||
})
|
||||
|
Reference in New Issue
Block a user