mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-01 21:40:16 +00:00
629eada1f7
* feat: recording/playing back network requests with nock * lint fix
19 lines
514 B
JavaScript
19 lines
514 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import babel from 'rollup-plugin-babel';
|
|
import babelrc from 'babelrc-rollup'; // eslint-disable-line import/extensions
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
const 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,
|
|
};
|