embark/packages/embark-pipeline/.babelrc.js

24 lines
367 B
JavaScript
Raw Normal View History

/* global module require */
const cloneDeep = require('lodash.clonedeep');
module.exports = (api) => {
const env = api.env();
const base = {};
const node = cloneDeep(base);
Object.assign(node, {
ignore: [
'src/babel-loader-overrides.js',
'src/webpack.config.js'
]
});
if (env === 'node') {
return node;
}
return base;
};