aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-03-10 18:47:42 +0200
committerGitHub <[email protected]>2021-03-10 18:47:42 +0200
commit2732a60ecdc23578f6f0c0113271fbd047b707a2 (patch)
tree3c9cd1007a95404cfa500bfa5868cfd545c149cd /build
parent26c999152b337f738394cc7d7fbfeb4d7917870a (diff)
downloadbootstrap-2732a60ecdc23578f6f0c0113271fbd047b707a2.tar.xz
bootstrap-2732a60ecdc23578f6f0c0113271fbd047b707a2.zip
@rollup/plugin-replace: specify `preventAssignment: true` (#33329)
This is to fix a warning since the option will be set to true in the next major version of the plugin
Diffstat (limited to 'build')
-rw-r--r--build/rollup.config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/rollup.config.js b/build/rollup.config.js
index 7f9c1c7e1..8cecec9aa 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -28,7 +28,13 @@ if (BUNDLE) {
// Remove last entry in external array to bundle Popper
external.pop()
delete globals['@popperjs/core']
- plugins.push(replace({ 'process.env.NODE_ENV': '"production"' }), nodeResolve())
+ plugins.push(
+ replace({
+ 'process.env.NODE_ENV': '"production"',
+ preventAssignment: true
+ }),
+ nodeResolve()
+ )
}
const rollupConfig = {