mercury-parser/rollup.config.js

19 lines
510 B
JavaScript
Raw Normal View History

/* 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;
2016-08-22 18:53:42 +00:00
export default {
2016-09-16 17:26:37 +00:00
entry: 'src/mercury.js',
plugins: [
commonjs(),
babel(babelOpts),
],
2016-08-22 18:53:42 +00:00
format: 'cjs',
dest: process.env.MERCURY_TEST_BUILD ? 'dist/mercury_test.js' : 'dist/mercury.js',
sourceMap: true,
};