mirror of
https://github.com/postlight/mercury-parser
synced 2024-10-31 03:20:40 +00:00
23 lines
478 B
JavaScript
23 lines
478 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import babel from 'rollup-plugin-babel';
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
export default {
|
|
input: 'src/mercury.js',
|
|
plugins: [
|
|
commonjs(),
|
|
babel({
|
|
externalHelpers: false,
|
|
runtimeHelpers: true,
|
|
}),
|
|
],
|
|
treeshake: true,
|
|
output: {
|
|
file: process.env.MERCURY_TEST_BUILD
|
|
? 'dist/mercury_test.js'
|
|
: 'dist/mercury.js',
|
|
format: 'cjs',
|
|
sourceMap: true,
|
|
},
|
|
};
|