Module Execution Order
samth at ccs.neu.edu
Wed Apr 10 07:38:24 PDT 2013
On Wed, Apr 10, 2013 at 10:36 AM, Kevin Smith <zenparsing at gmail.com> wrote:
> OK, so two follow-up points:
> 1) Just to be explicit, this is a different execution order than
> node/CommonJS modules. Nothing wrong with that, just pointing it out.
> 2) The execution order is then just a topological sort of the dependency
> graph, breaking cycles where appropriate. Is that correct?
Yes. Cycles are broken by reference to the order in which the
relevant imports appear in the source of the importing module.
More information about the es-discuss