mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
e58c5528a6
The ignore paths for the default webpack config and babel-loader-overrides helper script weren't properly adjusted after the legacy pipeline was split-out into its own package in the monorepo.
24 lines
367 B
JavaScript
24 lines
367 B
JavaScript
/* 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;
|
|
};
|