2016-10-28 21:54:12 +00:00
|
|
|
/* 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';
|
2016-09-02 17:43:03 +00:00
|
|
|
|
2016-10-28 21:54:12 +00:00
|
|
|
const babelOpts = babelrc();
|
|
|
|
babelOpts.runtimeHelpers = true;
|
2016-09-19 14:59:37 +00:00
|
|
|
|
2016-08-22 18:53:42 +00:00
|
|
|
export default {
|
2016-09-16 17:26:37 +00:00
|
|
|
entry: 'src/mercury.js',
|
2016-09-02 17:43:03 +00:00
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
2016-09-19 14:59:37 +00:00
|
|
|
babel(babelOpts),
|
2016-09-02 17:43:03 +00:00
|
|
|
],
|
2016-08-22 18:53:42 +00:00
|
|
|
format: 'cjs',
|
2016-11-29 23:13:29 +00:00
|
|
|
dest: process.env.MERCURY_TEST_BUILD ? 'dist/mercury_test.js' : 'dist/mercury.js',
|
2016-09-06 21:55:45 +00:00
|
|
|
sourceMap: true,
|
2016-10-28 21:54:12 +00:00
|
|
|
};
|