CDN that bundles npm packages for browsers?

305 Views Asked by At

TLDR: Does anyone know of a npm package CDN that bundles the Javascript into a non-module js file?

I’m looking to use this package in a userscript. It’s a simple userscript, so I’d rather just use the userscript @require keyword to import it into the single file script.

Generally, you can’t do this for ES Module (and maybe even CommonJS) js files. The normal dist js file for this package has an export{…} clause that makes it incompatible with the @require keyword.

I’ve been looking for JS CDNs that might be able to bundle the js for me into a form that’s usable in vanilla-JS situations like this one. Here are all the CDNs I’ve found:

I can probably get away with just bundling the package myself, or (if I feel like tinkering), running my own instances of one of the dead bundling CDNs. But I’m wondering if there is a CDN out there that does what I want, especially since I haven’t found a new major CDN introduced to the ecosystem that’s newer than 2017.

0

There are 0 best solutions below