shellscape/webpack-manifest-plugin

Slow in webpack 5

domarmstrong opened this issue · 1 comments

  • Manifest Plugin Version: 3.0.0

Expected Behavior / Situation

Plugin is fast

Actual Behavior / Situation

Plugin is slow

Modification Proposal

Hi. I've found that our webpack rebuild time is quite slow when upgrading to webpack 5. One of the reasons seems to be the call to stats.toJson in emitHook. I noticed that all: false is commented out in 2702efb#diff-9c0b469fe528c4695452cbd66ea7ba2845b967ff897481f6e0d66c4d963cbfccR42, adding this back in dramatically increases the processing time. Was there a reason this was commented out, or can it be added back? I see no adverse affects in our build by enabling it again.

// all: false commented out
stats: 1.697s
// all: false enabled
stats: 12.53ms

Awesome, thank you 👍