diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-03-10 19:47:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 19:47:42 +0300 |
commit | 2732a60ecdc23578f6f0c0113271fbd047b707a2 (patch) | |
tree | 3c9cd1007a95404cfa500bfa5868cfd545c149cd /js | |
parent | 26c999152b337f738394cc7d7fbfeb4d7917870a (diff) |
@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 'js')
-rw-r--r-- | js/tests/integration/rollup.bundle.js | 3 | ||||
-rw-r--r-- | js/tests/karma.conf.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/js/tests/integration/rollup.bundle.js b/js/tests/integration/rollup.bundle.js index 288f40961d..caddcab484 100644 --- a/js/tests/integration/rollup.bundle.js +++ b/js/tests/integration/rollup.bundle.js @@ -12,7 +12,8 @@ module.exports = { }, plugins: [ replace({ - 'process.env.NODE_ENV': '"production"' + 'process.env.NODE_ENV': '"production"', + preventAssignment: true }), nodeResolve(), babel({ diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js index c13413449d..67b60f15ee 100644 --- a/js/tests/karma.conf.js +++ b/js/tests/karma.conf.js @@ -77,7 +77,8 @@ const conf = { rollupPreprocessor: { plugins: [ replace({ - 'process.env.NODE_ENV': '"dev"' + 'process.env.NODE_ENV': '"dev"', + preventAssignment: true }), istanbul({ exclude: [ |