Loader Hooks

Juan Ignacio Dopazo jdopazo at yahoo-inc.com
Tue Jun 24 11:16:58 PDT 2014

>On Tuesday, June 24, 2014 11:38 AM, Calvin Metcalf <calvin.metcalf at gmail.com> wrote:
>Say you wanted to add a hook which automatically added an export named filepath to a module is the path to the file
For this use case and other similar ones it'd be nice if the `metadata` property of load records would be exposed as part of the modules metadata in `this` or `Reflect.currentModule()`.

or add an import just for the side effects (say a shim or something)
We've been discussing conditional loading for shims and other similar stuff at https://github.com/systemjs/systemjs/issues/9.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140624/8e019b04/attachment.html>

More information about the es-discuss mailing list