2018-12-13 10:54:54 +01:00
|
|
|
/* eslint-env node */
|
|
|
|
|
2020-05-26 05:14:12 +02:00
|
|
|
const { babel } = require('@rollup/plugin-babel')
|
2020-07-07 09:23:11 +02:00
|
|
|
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
2020-06-19 10:17:01 +02:00
|
|
|
const replace = require('@rollup/plugin-replace')
|
2018-12-13 10:54:54 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
input: 'js/tests/integration/bundle.js',
|
|
|
|
output: {
|
|
|
|
file: 'js/coverage/bundle.js',
|
|
|
|
format: 'iife'
|
|
|
|
},
|
|
|
|
plugins: [
|
2020-06-19 10:17:01 +02:00
|
|
|
replace({
|
2021-03-10 17:47:42 +01:00
|
|
|
'process.env.NODE_ENV': '"production"',
|
|
|
|
preventAssignment: true
|
2020-06-19 10:17:01 +02:00
|
|
|
}),
|
2020-07-07 09:23:11 +02:00
|
|
|
nodeResolve(),
|
2018-12-13 10:54:54 +01:00
|
|
|
babel({
|
2020-05-26 05:14:12 +02:00
|
|
|
exclude: 'node_modules/**',
|
|
|
|
babelHelpers: 'bundled'
|
2018-12-13 10:54:54 +01:00
|
|
|
})
|
|
|
|
]
|
|
|
|
}
|