mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-05 12:00:13 +00:00
59fb4c4974
in external code
18 lines
374 B
JavaScript
18 lines
374 B
JavaScript
import babel from 'rollup-plugin-babel'
|
|
import babelrc from 'babelrc-rollup'
|
|
import commonjs from 'rollup-plugin-commonjs'
|
|
|
|
let babelOpts = babelrc()
|
|
babelOpts.runtimeHelpers = true
|
|
|
|
export default {
|
|
entry: 'src/mercury.js',
|
|
plugins: [
|
|
commonjs(),
|
|
babel(babelOpts),
|
|
],
|
|
format: 'cjs',
|
|
dest: 'dist/mercury.js', // equivalent to --output
|
|
sourceMap: true,
|
|
}
|