Suggestion: use json-perf-loader instead of the default webpack JSON loader.
Because the JSON grammar is much simpler than JavaScript’s grammar, JSON can be parsed more efficiently than JavaScript. This knowledge can be applied to improve start-up performance for web apps that ship large JSON-like configuration object literals (such as inline Redux stores). Instead of inlining the data as a JavaScript object literal.
As long as the JSON string is only evaluated once, the JSON.parse approach is much faster compared to the JavaScript object literal
I've asked if that is still useful for webpack v4 here, just to be sure it makes sense :)
Suggestion: use json-perf-loader instead of the default webpack JSON loader.
I've asked if that is still useful for webpack v4 here, just to be sure it makes sense :)