mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-08 17:22:31 +03: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