summaryrefslogtreecommitdiffstats
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.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/tests/integration/rollup.bundle.js b/js/tests/integration/rollup.bundle.js
new file mode 100644
index 0000000..caddcab
--- /dev/null
+++ b/js/tests/integration/rollup.bundle.js
@@ -0,0 +1,24 @@
+/* eslint-env node */
+
+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',
+ output: {
+ file: 'js/coverage/bundle.js',
+ format: 'iife'
+ },
+ plugins: [
+ replace({
+ 'process.env.NODE_ENV': '"production"',
+ preventAssignment: true
+ }),
+ nodeResolve(),
+ babel({
+ exclude: 'node_modules/**',
+ babelHelpers: 'bundled'
+ })
+ ]
+}