Closed endiliey closed 5 years ago
@themgoncalves what do you think of this PR ?
@endiliey thanks for your contribution! I will be running some tests and getting back with the results.
💪
@endiliey FYI v0.2.0
was released.
Thanks. I'm gonna test it out. If any problem, I'll report back.
🚀 Performance improvements (
:rocket:
)Summary
Attempt to reduce memory usage #17 and increase build performance
Technically instead of doing
We did
What this
getMinimalStatsChunks
did is basically mimicking webpack way of creatingstats.chunks
from https://github.com/webpack/webpack/blob/1a773336187ec0218e060d453f801bc73ab98a6e/lib/Stats.js#L633Why so ? Because there are lot of unwanted fields in stats.chunks that causes JavaScript heap out of memory crash. There are lot of expensive operations like sorting that we actually dont need for this plugin
Why
Fix #17
Checklist
errors
orwarnings
approved terminology
unit tests
, if apply.Test Plan
Test Scenario
Before
The log looks like this
After (patching the react-loadable-ssr-addon with this PR)
This repo test