Coder Social home page Coder Social logo

Comments (8)

ije avatar ije commented on July 17, 2024 2

hi, you can use esm.sh for now, util this feature is added.

- https://esm.sh/jsr/@kwhinnery/[email protected]
+ https://jsr.io/@kwhinnery/[email protected]

from jsr.

marvinhagemeister avatar marvinhagemeister commented on July 17, 2024 1

FYI esm.sh already added support for JSR.

from jsr.

jespertheend avatar jespertheend commented on July 17, 2024

The JSR website says it works with any runtime. Which is a pretty bold claim when it doesn't work in browsers :P

from jsr.

ericlery avatar ericlery commented on July 17, 2024

The JSR website says it works with any runtime. Which is a pretty bold claim when it doesn't work in browsers :P

It's actually a bit more complicated than that. It works on projects when your back end process/bundle your front end.

But for me personally, the good ol' browser link is the way for quick and dirty prototyping. For some people, it's even their norm.

from jsr.

jespertheend avatar jespertheend commented on July 17, 2024

For me it's my norm, it's why I exclusively write .js files ๐Ÿ˜…

Fwiw, jsr's usage policy says:

It is not acceptable to use JSR as a CDN for serving assets directly to web applications in a browser, except for development purposes. JSR is not a general purpose file hosting service.

So I suppose that even if this does get added, it will still be pretty useless.

I think maybe instead we should start bugging jsDelivr. They already support npm, so hopefully they could make use of the npm compatibility layer without too much effort. Their site says:

Custom CDN Hosting

We can work together and set up a custom configuration for your project. This way, you can have full control over your files and the ability to utilize the full power of jsDelivr.

from jsr.

jespertheend avatar jespertheend commented on July 17, 2024

Ah cool! I wasn't aware.

from jsr.

ericlery avatar ericlery commented on July 17, 2024

Yes to all of you that re-mention it, esm.sh already added support of JSR, that's the title and the whole point for this issue:

Make it available for JSR too please.

Why should we use something else to get JSR modules?

from jsr.

mhanuszh avatar mhanuszh commented on July 17, 2024

I'm not here to annoy anyone subscribed to this issue, but...
Is this feature being even considered by the devs? I haven't found anything about them planning on adding this.

from jsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.