Skip to content

Commit

Permalink
[Dev] Fix serialising a really big string (#50915)
Browse files Browse the repository at this point in the history
* A fix

* limit size of webpack error object
  • Loading branch information
jloleysens authored Nov 18, 2019
1 parent 3026912 commit 0c2c63f
Showing 1 changed file with 2 additions and 1 deletion.
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 0c2c63f

Please sign in to comment.