Right now you can't do this:
constblob=newBlob("console.log(42)",{type: "text/javascript"});constblobURL=URL.createObjectURL(blob);awaitimport(blobURL);nodejs/node#47573
To fix this, I think a solution might be:
- Use
--loader so that blob: URLs get handled - Use the global preload code hook to monkey-patch the
URL.createObjectURL() API to do a BroadcastChannel message to let the --loader thread know that a new blob: URL was made
I am interested in adding code to make this work.
Right now you can't do this:
nodejs/node#47573
To fix this, I think a solution might be:
--loaderso thatblob:URLs get handledURL.createObjectURL()API to do aBroadcastChannelmessage to let the--loaderthread know that a newblob:URL was madeI am interested in adding code to make this work.