aboutsummaryrefslogtreecommitdiff
path: root/js/tests/integration/rollup.bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/integration/rollup.bundle.js')
-rw-r--r--js/tests/integration/rollup.bundle.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/tests/integration/rollup.bundle.js b/js/tests/integration/rollup.bundle.js
index 9e2ed26c1..caddcab48 100644
--- a/js/tests/integration/rollup.bundle.js
+++ b/js/tests/integration/rollup.bundle.js
@@ -2,6 +2,7 @@
const { babel } = require('@rollup/plugin-babel')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
+const replace = require('@rollup/plugin-replace')
module.exports = {
input: 'js/tests/integration/bundle.js',
@@ -10,6 +11,10 @@ module.exports = {
format: 'iife'
},
plugins: [
+ replace({
+ 'process.env.NODE_ENV': '"production"',
+ preventAssignment: true
+ }),
nodeResolve(),
babel({
exclude: 'node_modules/**',