You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same bug that webpack/webpack-cli#2190 fixes. The issue here is if webpack stats object is large enough you can no longer just call JSON.stringify on it, otherwise you get errors along the lines of RangeError: Invalid string length.
The fix here is to stream the JSON serialization rather than doing it at once. Fixing this might be tricky without making a breaking change to the plugin API since I'm not sure how it can be compatible with the current opts.transform
The text was updated successfully, but these errors were encountered:
Ahh, gotcha, the trick here being not using the file output from webpack-stats-plugin (emit: false) and just doing it yourself. Thanks for the pointer!
Is there an existing issue for this?
Code of Conduct
Code Sandbox link
No response
Bug report
The same bug that webpack/webpack-cli#2190 fixes. The issue here is if webpack stats object is large enough you can no longer just call
JSON.stringify
on it, otherwise you get errors along the lines ofRangeError: Invalid string length
.The fix here is to stream the JSON serialization rather than doing it at once. Fixing this might be tricky without making a breaking change to the plugin API since I'm not sure how it can be compatible with the current
opts.transform
The text was updated successfully, but these errors were encountered: