LambdAurora
How to properly publish a JSR package with browser compatibility?
I've been getting back to Deno and JS/TS development in general these last few days and I've been scratching my head over publication of a library I'm working on, I had in mind to publish it in a way it's easily available in Deno and in browsers, then I've stumbled upon JSR, but it marking packages as "browser compatible" is really confusing to me, especially when I can't seem to see any JS files in the published packages that are marked as browser compatible, is JSR not actually intended to be used directly in browser JS? Is there another CDN that I'm supposed to use to import JSR packages in browsers?
So far my hunt for a good and easy solution seems to be failing, and I was getting my hopes up about not having to publish to npm and rely on npm-based JS CDNs.
8 replies