esmurl #4
jcbhmr
started this conversation in
Show and tell
Replies: 1 comment
-
Another Neat idea by Jacob, You're welcome to have this in tinylibs as tinyesmurl or something like that. let me know (+ the name) so I create a repo for it so you bring it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/jcbhmr/esmurl
👆 I made that and I'm "shopping" for a larger organization to transfer it to. I came across @unjs; I also want to open a discussion with them. This @tinylibs organization might be another place for such a package. 🤷♂️ Hence the discussion!
This is what it lets you do:
And it even works with bundlers! It does so by regex-magicing all the
import()
into__import__()
and then at runtime resolving any__import__("./more.js")
via the user-provided import.meta object'simportMeta.url
Yes, it can be renamed to some tiny* name if you want. Don't worry about the users; there are none yet. 😜
Why do I want to foist this onto an organization? If I am on vacation or something, somebody else can still do stuff! ...and I think it's a cool way to immediately boost eyes on such an infant project. 😅
Beta Was this translation helpful? Give feedback.
All reactions