Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[performance] use JSON.parse(jsonSource) for JSON modules #9349
What kind of change does this PR introduce?
A performance optimization.
Did you add tests for your changes?
No. This PR does not change the behavior, but I've tested it on my production code that boosts ~20% of "loading" time on Chrome 75 in my bundle.js that includes over 1MiB of JSON objects.
Does this PR introduce a breaking change?
What needs to be documented once your changes are merged?
No. It's just an implementation detail.
FYI you can try the implementation without patching webpack:
(added on 2019/07/09)
To disable this feature in order to, for example, measure the performance, use the good old