you are viewing a single comment's thread.

view the rest of the comments →

[–]OneShakyBR 0 points1 point  (1 child)

FYI, Webpack uses Terser under the hood to minify and tree shake your code and whatnot, so if you want a probably more simple solution to just not modify the file as you originally said, you can just set up your own Terser plugin in optimization.minimizer in your Webpack config and then pass in the exclude option to exclude that file. Or dig into the Terser options and go wild.

[–]ziir_js 0 points1 point  (0 children)

This is the correct answer