Skip to content

Commit

Permalink
limit size of webpack error object
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Nov 18, 2019
1 parent 182a13d commit 9b379df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/legacy/server/logging/apply_filters_to_keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
*/

function toPojo(obj) {
if (obj.err && obj.err.data) {
delete obj.err.data;
}
return JSON.parse(JSON.stringify(obj));
}

Expand Down
3 changes: 2 additions & 1 deletion src/optimize/base_optimizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ export default class BaseOptimizer {
`Optimizations failure.\n${details.split('\n').join('\n ')}\n`,
stats.toJson(defaults({
warningsFilter: STATS_WARNINGS_FILTER,
...Stats.presetToOptions('detailed')
...Stats.presetToOptions('detailed'),
maxModules: 1000,
}))
);
}
Expand Down

0 comments on commit 9b379df

Please sign in to comment.