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
{{ message }}
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
I've created a proof of concept for adding source transformation support to the ESM loader resolve hooks. An example --loader script using this feature:
Thoughts on this API? Currently my patch supports the fetchSource option for module, wasm and json formats. I'm unsure what the return value of fetchSource should be. Currently a string is expected because is was easiest to implement and matches the existing getSource, but maybe it would make sense for it to allow an object {source, sourceMap}? To do that I'd need advice on what to do with the sourceMap object.