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
I can confirm that bundle-stats reads the file sync and fails when the file size is larger than nodejs can handle (existing issue: relative-ci/bundle-stats#2118).
@huksley i revisited the code, and while the JSON reading is async, the parsing is sync (JSON.parse).
I think that it will be useful to implement an async way of loading and parsing the JSON, but because bundle-stats uses only ~10MB of data from the webpack stats of a large project (500 assets, 15K modules), i think it is more appropiate for now to output less data. A smaller webpack stats JSON file means faster builds and lower costs for CI storing/transferring. Here is a way to optimize the webpack stats JSON to the minimum required data for bundle-stats: https://relative-ci.com/documentation/guides/webpack-stats/webpack-stats-plugin/#optimize-the-webpack-stats-json-file-size
Feel free to keep the issue open so you can get notified when bundle-stats#2118 feature will be ready, though no plans for when is it going to be implemented
Running it in GitHub CI results in the following error:
I tried googling it and it related to out of memory error and JSON serialization/deserialization.
In my other project, using JSON.serialize() is an OOM,
so I was using
The text was updated successfully, but these errors were encountered: