chore(build): add preventAssignment option for replace plugin

This commit is contained in:
Pooya Parsa 2021-02-23 10:29:00 +01:00
parent b7f9cdc2a4
commit 756b16ae06

View File

@ -38,6 +38,7 @@ export default function rollupConfig ({
replacePlugin({ replacePlugin({
exclude: 'node_modules/**', exclude: 'node_modules/**',
delimiters: ['', ''], delimiters: ['', ''],
preventAssignment: true,
values: { values: {
__NODE_ENV__: process.env.NODE_ENV, __NODE_ENV__: process.env.NODE_ENV,
...replace ...replace