babel-plugin-object-to-json-parse for improving the startup-performance
Is your proposal related to a problem?
No
Describe the solution you'd like
JavaScript engines can parse JSON more efficiently than JavaScript. See this article and this talk. In order to improve the startup-performance it would be nice if react-scripts can address this issue.
There is a babel plugin that addresses this issue automatically, so developers do not need to handle this manually.
What do you think about that? I would be pleased to issue a PR.
This should already be taken care of in webpack: https://github.com/webpack/webpack/pull/9349.
Ah sorry - I misread. You were talking about JavaScript objects, not json files. That being said we wouldn't be interested in including the plug-in you mentioned as it isn't production ready as the author indicated.
@ianmcnally Would you consider using it as soon as it is production ready? Based on the condition the author continues working on it.
Possibly - we'd need to see some fairly compelling evidence that the plug-in is extremely stable and an improvement in the majority of cases.
Alright, seems fair :-) Thank you.