How to prevent a specific third-party dependency from being transformed for production by webpack?

Running webpack in production mode corrupts a certain third-party library and I’d like to be able to use it without corruption. Is there a way to exclude a given library from the webpack minification/uglification/etc. process but still include it in the bundle?

Would also love to know if this is also possible for javascript modules I’ve written in my own code (not node_modules).

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.