0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/js/tests/integration/rollup.bundle.js

25 lines
539 B
JavaScript
Raw Normal View History

/* eslint-env node */
const { babel } = require('@rollup/plugin-babel')
const { nodeResolve } = require('@rollup/plugin-node-resolve')
2020-06-19 10:17:01 +02:00
const replace = require('@rollup/plugin-replace')
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({
'process.env.NODE_ENV': '"production"',
preventAssignment: true
2020-06-19 10:17:01 +02:00
}),
nodeResolve(),
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled'
})
]
}