mercury-parser/rollup.config.js
Janet c4d72fb735 feat: add money.cnn custom parser (#26)
* feat: add money.cnn custom parser

* added timezone to cnn custom parser
2016-11-29 15:13:29 -08:00

19 lines
510 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: 'src/mercury.js',
plugins: [
commonjs(),
babel(babelOpts),
],
format: 'cjs',
dest: process.env.MERCURY_TEST_BUILD ? 'dist/mercury_test.js' : 'dist/mercury.js',
sourceMap: true,
};