gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

React dead code elimination error in production #43

Closed 1ifeng closed 6 years ago

1ifeng commented 6 years ago

there is problem when I use webpack-parallel-uglify-plugin, but it's OK using uglifyjs-webpack-plugin. I'm not sure it is caused by this plugin. the problem show as below: Uncaught Error: React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://fb.me/react-perf-use-the-production-build at <anonymous>:21:35

gdborton commented 6 years ago

@lifeng1893 Could you create an example repo that produces this issue? We've been using this plugin at Airbnb since its creation and haven't experienced this issue.

1ifeng commented 6 years ago

@gdborton ummm..I tried again, it's OK now, maybe the error caused by any other reason.