-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support aliasing dependencies #89
Comments
@lucacasonato thanks, it is a great idea, i will add this feature in few days! and thanks vary much for the kind sponsorship ask but i can't accept it since github Sponsors doesn't work in my country :( |
Aw, that's very unfortunate. If I can help out in any other way (hosting infrastructure cost for example), please hit me up on Discord. And once Sponsors becomes available on your country, please ping me! |
Could be possible expanded to have official deno packages used.
|
@lucacasonato @shadowtime2000 Aliasing can work now, pls try |
@ije This looks like it's broken deps in my projects. https://esm.sh/wouter?deps=react@alpha
I might be remembering incorrectly, but I thought deps was passed into the exports in these statements: ie: |
@mashaal alias is different with deps, it is used to replace deps as Luca asked, you can use the |
but yes the CDN URL is changed when you passed |
i am going to close this since we have implemented this feature in v44, thanks a lot @lucacasonato |
Can I specify aliases for the dependency of dependency? Example: graphiql
@graphiql/react
import GraphiQL from "https://esm.sh/graphiql?alias=react:preact/compat,react-dom:preact/compat"; Or you may need the scope of the alias. import GraphiQL from "https://esm.sh/graphiql?alias=react:preact/compat,react-dom:preact/compat,@graphiql/react^react:preact/compat"; |
For example:
https://esm.sh/swr?alias=react:preact/compat
And in combination with
?deps
:Especially useful for react -> preact :-)
Also, do you accept sponsorship anywhere?
The text was updated successfully, but these errors were encountered: