electrode-react-ssr-caching icon indicating copy to clipboard operation
electrode-react-ssr-caching copied to clipboard

Component names changes when using UglifyJS

Open maxpain opened this issue 8 years ago • 1 comments

When using UglifyJS (in Webpack), component names replaces with short values, and this package not working in this case.

screen shot 2016-12-14 at 11 49 56

maxpain avatar Dec 14 '16 04:12 maxpain

I solved that problem with turned off mangle in UglifyJs in webpack (it is not a good solution) new webpack.optimize.UglifyJsPlugin({ mangle: false, }) I think it will be nice to check also displayName (but also webpack can cut it) or simply add static field to component to turn on caching

rroslaniec avatar Jun 22 '17 13:06 rroslaniec