Webpack packaged file compression error after refresh

as shown in the picture, it should actually be var e2 =., but this is the file packaged by webpack, and it should be solved in this way

Mar.23,2021

I have been using webpack for more than 2 years and have not encountered this problem.

first of all, I suspect that you made a mistake, but in the spirit of seeking truth, I suggest you upload it to GitHub with a minimized demo, that has this problem, so I can see if your webpack has any special configuration.

Menu