Skip to content

Commit

Permalink
turn off webpack optimization for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Apr 4, 2024
1 parent 71bfdc1 commit ca01eea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions karma.conf.maker.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ function newWebpackConfig(codeCoverage, disableFeatures) {
mode: 'development',
devtool: 'inline-source-map',
});

delete webpackConfig.entry;
['entry', 'optimization'].forEach(prop => delete webpackConfig[prop]);

webpackConfig.module.rules
.flatMap((r) => r.use)
Expand Down
1 change: 0 additions & 1 deletion webpack.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ module.exports = {
return Object.assign(libraries, {
common_deps: {
name: 'common_deps',
chunks: 'all',
test(module) {
return module.resource?.startsWith(nodeModules);
}
Expand Down

0 comments on commit ca01eea

Please sign in to comment.