From 2732a60ecdc23578f6f0c0113271fbd047b707a2 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 10 Mar 2021 18:47:42 +0200 Subject: @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 --- build/rollup.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/rollup.config.js b/build/rollup.config.js index 7f9c1c7e11..8cecec9aa2 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 = { -- cgit v1.2.3