es4x icon indicating copy to clipboard operation
es4x copied to clipboard

PR: Tracking progress for later alignment with web-modules.

Open lemanschik opened this issue 3 years ago • 2 comments

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

lemanschik avatar Dec 05 '22 03:12 lemanschik

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 avatar Dec 07 '22 12:12 pmlopes

@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.

lemanschik avatar Dec 07 '22 17:12 lemanschik