es4x
es4x copied to clipboard
PR: Tracking progress for later alignment with web-modules.
This can be ignored by the most people you will see it soon in your editor. and browser without any intervention needed this is a internal engineering change nothing big to worry about.
es4x issues
- [ ] https://github.com/reactiverse/es4x/compare/develop...feature/source-map
Overall Tracking
- [x] https://github.com/lemanschik/web-modules/issues/4
Parsing and look up is complete, the final step is how to register the source maps. This means that the file system resolver needs to issue events whenever a file is read to attempt to load the map if present.
@pmlopes
import('./resolverIdHook.js?id=myModuleSpecifier').then((resolvedId)=>import(resolvedId));
// This defines what happens
const importObject = { imports: { imported_func: (arg) => console.log(arg) } };
WebAssembly.instantiateStreaming(fetch("simple.wasm"), importObject).then(
(loadedInMemory) => loadedInMemory.instance.exports.exported_func()
);
import maps get executed on a other layer they get static into mem no need to look at it after instantiation.