You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is the right place to ask/inquire about this. 😬
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 don't know if @unjs is accepting new packages or what the procedure is or literally anything at all. 🤷♂️ Hence the discussion!
This is what it lets you do:
// https://cdn.com/lib.js 👇 This import.meta is serialized into the self-contained URLconstworkerURL=esmurl(import.meta,async()=>{// 👇 This is properly resolved to https://cdn.com/more.js even// though it's being stringified and put into a blob: URLconstmoreLibCode=awaitimport("./more.js")onmessage=e=>postMessage(moreLibCode.compute(e.data))})constworker=newWorker(workerURL,{type: "module"})
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's importMeta.url
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. 😅
I don't know if this is the right place to ask/inquire about this. 😬
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 don't know if @unjs is accepting new packages or what the procedure is or literally anything at all. 🤷♂️ 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
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. 😅
see also #2
The text was updated successfully, but these errors were encountered: