Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}),
babel({
babelrc: false,
presets: [
[
'es2015',
{
modules: false,
},
],
],
plugins: [
'external-helpers',
],
// fixing temporary rollup's regression, remove when rollup/rollup#1595 gets solved
externalHelpersWhitelist: babelHelpersList.filter(helperName => helperName !== 'asyncGenerator'),
}),
visualizer(),
],
external: [
'combine-arrays',
'eventemitter3',
'hash-brown-router',
'iso-next-tick',
'page-path-builder',
'path-to-regexp-with-reversible-keys',
'then-denodeify',
],
}
import { list as babelHelpersList } from 'babel-helpers';
import pkg from './package.json';
const config = {
output: {
format: process.env.BABEL_ENV
},
plugins: [
nodeResolve({
jsnext: true,
extensions: ['.js', '.jsx']
}),
babel({
exclude: 'node_modules/**',
plugins: ['external-helpers'],
externalHelpersWhitelist: babelHelpersList.filter(
helperName => helperName !== 'asyncGenerator'
)
}),
commonjs({
include: 'node_modules/**',
})
],
external: [
'react',
'react-dom',
'classnames',
'prop-types',
'moment'
]
};