Skip to content

Conversation

@ZYSzys
Copy link
Contributor

@ZYSzys ZYSzys commented Nov 24, 2018

Refs: module_cycles

When main.js loads a.js, then a.js in turn loads b.js. At that point, b.js tries to load a.js. In order to prevent an infinite loop, an unfinished copy of the a.js exports object is returned to the b.js module. b.js then finishes loading, and its exports object is provided to the a.js module.

@Lellansin Lellansin merged commit 59de80b into ElemeFE:master Nov 26, 2018
@ZYSzys ZYSzys deleted the module branch July 4, 2019 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants