How to solve this basic ES6-module circular dependency problem?

Jason Orendorff jason.orendorff at gmail.com
Tue Aug 9 21:04:38 UTC 2016


On Tue, Aug 9, 2016 at 3:03 PM, /#!/JoePea <joe at trusktr.io> wrote:

> Why is it that the body of module C is not evaluated before the bodies of
> modules A and B?
>

The module system *does* execute all a module's dependencies before
executing that module, *except* in cases like this where there are cycles
in the dependency graph and that requirement is therefore impossible to
satisfy for all modules simultaneously.

-j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160809/3b35dfde/attachment.html>


More information about the es-discuss mailing list