mercury-parser/scripts/rollup.config.js
Adam Pash a60d5a6332 fix: custom parser generator
- swap fs import
- fix rollup config
2019-02-12 16:11:56 -08:00

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,
},
};