Modules and dependencies known before the load

Ian Hickson ian at hixie.ch
Wed Aug 13 16:11:03 PDT 2014


On Wed, 13 Aug 2014, Kevin Smith wrote:
> >
> > Ideally I think we should adjust the ES6 module system to support 
> > loading and compiling code (though not necessarily executing it) for 
> > dependencies at or around the "fetch" hook.
> 
> It seems like it should be possible, in principle, to add dependencies 
> to a load record at any time prior the instantiate hook resolving.  
> After all, the effect of the instantiate hook is to make the dependency 
> list completely arbitrary.
> 
> Would that solve the issue from your point of view?

If I understand what you're saying correctly, then yes (assuming that 
those dependencies are also acted upon promptly, rather than only after 
"fetch" has returned).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the es-discuss mailing list