Skip to content

Commit 0c2c63f

Browse files
authored
[Dev] Fix serialising a really big string (#50915)
* A fix * limit size of webpack error object
1 parent 3026912 commit 0c2c63f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/optimize/base_optimizer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ export default class BaseOptimizer {
543543
`Optimizations failure.\n${details.split('\n').join('\n ')}\n`,
544544
stats.toJson(defaults({
545545
warningsFilter: STATS_WARNINGS_FILTER,
546-
...Stats.presetToOptions('detailed')
546+
...Stats.presetToOptions('detailed'),
547+
maxModules: 1000,
547548
}))
548549
);
549550
}

0 commit comments

Comments
 (0)