Will it be possible to retrieve a loaded module's exports synchronously?
John Lenz
concavelenz at gmail.com
Wed Feb 24 22:58:20 UTC 2016
Background:
I'm trying to plan a migration to ES6 modules. For interop with the
existing systems in the short-medium term, I would like to be able to
retrieve a loaded modules exports synchronously (basically a "get or
fail").
It looks like retrieving the exports synchronously is possible using the
Registry object, however the registry requires that you have an appropriate
"key". The "key" appears to only be resolvable asynchronously which means
the whole operation must async.
Am I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160224/f21a6886/attachment.html>
More information about the es-discuss
mailing list