How do I get a JavaScript library that is not packaged as a UMD-compatible module (AMD, CommonJS) with webpack?
I do not want the library to go through the bootloader. I just want it to be included in the tag <script>whenever it is required, and for webpack to manage this dependency.
I donβt want to just put it in the script tag in mine index.html, because I want to use webpack code splitting and only enable it if necessary.
I read about the "external", I'm not sure if this has anything to do with it. The documents are not clear enough.
Thanks:)
Updated Question
This question also concerns front-end libraries, which need to be included only with the help of a tag <script>.
source
share