From 756b16ae06b33936d0e8f8f77af7d3cc35368065 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 23 Feb 2021 10:29:00 +0100 Subject: [PATCH] chore(build): add preventAssignment option for replace plugin --- scripts/rollup.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index e3e6eb69e1..4e194d0c61 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -38,6 +38,7 @@ export default function rollupConfig ({ replacePlugin({ exclude: 'node_modules/**', delimiters: ['', ''], + preventAssignment: true, values: { __NODE_ENV__: process.env.NODE_ENV, ...replace