Import Non-ESM libraries in ES Modules, with Client-Side Vanilla JS

3 · CSS-Tricks · Sept. 7, 2020, 10 p.m.
We’re living through a weird era where there are tons of JavaScript libraries that were meant to be used as <script> tags that expose available globals. AND there are tons of JavaScript libraries that are meant to be used through module loaders. AND there are tons of JavaScript libraries that assume you will use them via npm. AND there are tons of libraries built for ES6 imports. If you write a JavaScript library and are shooting for maximum usage, you’d … Read article “Import Non-ESM libraries...