2016-10-28 21:54:12 +00:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
|
|
import babel from 'rollup-plugin-babel';
|
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
2016-09-02 17:43:03 +00:00
|
|
|
|
2016-08-22 18:53:42 +00:00
|
|
|
export default {
|
2019-01-23 17:54:42 +00:00
|
|
|
input: 'src/mercury.js',
|
2016-09-02 17:43:03 +00:00
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
2019-01-23 17:54:42 +00:00
|
|
|
babel({
|
|
|
|
externalHelpers: false,
|
|
|
|
runtimeHelpers: true,
|
|
|
|
}),
|
2016-09-02 17:43:03 +00:00
|
|
|
],
|
2019-01-23 17:54:42 +00:00
|
|
|
treeshake: true,
|
|
|
|
output: {
|
|
|
|
file: process.env.MERCURY_TEST_BUILD
|
|
|
|
? 'dist/mercury_test.js'
|
|
|
|
: 'dist/mercury.js',
|
|
|
|
format: 'cjs',
|
|
|
|
sourceMap: true,
|
|
|
|
},
|
2016-10-28 21:54:12 +00:00
|
|
|
};
|