mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-17 03:25:31 +00:00
18 lines
414 B
JavaScript
18 lines
414 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: './scripts/generate-custom-parser.js',
|
|
plugins: [
|
|
commonjs(),
|
|
babel(babelOpts),
|
|
],
|
|
format: 'cjs',
|
|
dest: 'dist/generate-custom-parser.js', // equivalent to --output
|
|
sourceMap: true,
|
|
};
|