mirror of
https://github.com/postlight/mercury-parser
synced 2024-10-31 03:20:40 +00:00
ab56ce0de3
- swap fs import - fix rollup config
21 lines
442 B
JavaScript
21 lines
442 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import babel from 'rollup-plugin-babel';
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
export default {
|
|
input: 'scripts/generate-custom-parser.js',
|
|
plugins: [
|
|
commonjs(),
|
|
babel({
|
|
externalHelpers: false,
|
|
runtimeHelpers: true,
|
|
}),
|
|
],
|
|
treeshake: true,
|
|
output: {
|
|
file: 'dist/generate-custom-parser.js',
|
|
format: 'cjs',
|
|
sourceMap: true,
|
|
},
|
|
};
|