Using `--mode=production` does not work with some modules. In particular, 
`react-hot-loader` uses `NODE_ENV` to decide whether to use empty shell or HMR 
code. 

See bundle size before / after this change. 

![pasted_image_9_19_18__3_39_pm](https://user-images.githubusercontent.com/1659771/45785976-37274d80-bc23-11e8-8db9-7ac6c9169f25.png)

@williaster @xtinec 

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/5934 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to