mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 17:14:04 +02:00
Update to popper.js v2.x
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import 'popper.js'
|
||||
import Tooltip from '../../dist/tooltip'
|
||||
import '../../dist/carousel'
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import 'popper.js'
|
||||
import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
const { babel } = require('@rollup/plugin-babel')
|
||||
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
||||
const replace = require('@rollup/plugin-replace')
|
||||
|
||||
module.exports = {
|
||||
input: 'js/tests/integration/bundle.js',
|
||||
@@ -10,6 +11,9 @@ module.exports = {
|
||||
format: 'iife'
|
||||
},
|
||||
plugins: [
|
||||
replace({
|
||||
'process.env.NODE_ENV': '"production"'
|
||||
}),
|
||||
nodeResolve(),
|
||||
babel({
|
||||
exclude: 'node_modules/**',
|
||||
|
Reference in New Issue
Block a user