Friday, March 23, 2018

Wrong packing/generation of code




Encountered a mis-generated code, that this code..



..is generated as:




To fix mis-generation of code, remove webpack.HotModuleReplacementPlugin from webpack configuration:




I removed the adding of webpack.HotModuleReplacementPlugin from my code above, webpack does not mis-generate the code afterwards.


Happy Coding!

No comments:

Post a Comment