The tool was incorrectly putting production rather than "production" into the bundle. This code would break (since production would be an undefined variable), and did not measure the sizes correctly.
Example with react-dom (before and after the change):
The tool was incorrectly putting
production
rather than"production"
into the bundle. This code would break (sinceproduction
would be an undefined variable), and did not measure the sizes correctly.Example with
react-dom
(before and after the change):See also our instructions on the React website: https://facebook.github.io/react/docs/optimizing-performance.html#webpack
Hope this helps!