Modules Loader.load function

Guy Bedford guybedford at
Fri Jun 21 15:00:15 PDT 2013

I see there are now two load functions for the ES6 module loader -
'Loader.import' and 'Loader.load'. Loader.import seems to apply the full
normalization process, while Loader.load takes a url directly. This sounds
like a good feature to me.

>From the code comments in the reference loader at it
seems that any 'import' statements in code loaded with 'Loader.load' will
still be respected.

I was wondering if 'export' statements would similarly cause a module to be
returned by the 'Loader.load', and if so, why is the 'type' metadata in the
translate and link hooks necessary? Surely the lack of a 'normalized'
property in the metadata would implicitly indicate this anyway?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list