mattlewis92 / webpack-retry-chunk-load-plugin

A webpack plugin to retry loading of chunks that failed to load
MIT License
238 stars 45 forks source link

fix: Add a semicolon to prevent problems caused by the webpack produc… #29

Closed yeatszhang closed 3 years ago

yeatszhang commented 3 years ago

Add a semicolon to prevent problems caused by the webpack production environment. We have used a lot of optimized plug-ins, and have not yet located which plug-in caused it~

eg:

image

mattlewis92 commented 3 years ago

Hey there, I don't think your issue is caused by this plugin, if you check the snapshot diff you can see the semi colon is already there and this change just adds an extra semi colon

image

Looking at the other differences in your outputted code I suspect your problem may lie in the plugin you are using for minification, if using terser I would suggest checking the settings.

yeatszhang commented 3 years ago

@mattlewis92 Thank you, maybe you are right, I will debug it again, thank you for your suggestions