mercury-parser/rollup.config.js

18 lines
374 B
JavaScript
Raw Normal View History

import babel from 'rollup-plugin-babel'
import babelrc from 'babelrc-rollup'
import commonjs from 'rollup-plugin-commonjs'
let babelOpts = babelrc()
babelOpts.runtimeHelpers = true
2016-08-22 18:53:42 +00:00
export default {
2016-09-16 17:26:37 +00:00
entry: 'src/mercury.js',
plugins: [
commonjs(),
babel(babelOpts),
],
2016-08-22 18:53:42 +00:00
format: 'cjs',
2016-09-16 17:26:37 +00:00
dest: 'dist/mercury.js', // equivalent to --output
sourceMap: true,
}