Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 5ca6f56

Browse files
committed
Mention how CommonJS and AMD treat circular dependencies
1 parent 86ee1d9 commit 5ca6f56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ It is also possible to define wildcard paths rules. The most specific rule will
123123

124124
### Circular References & Bindings
125125

126+
All [AMD](http://requirejs.org/docs/api.html#circular), [CommonJS](http://nodejs.org/api/modules.html#modules_cycles), and [ES6](https://github.com/ModuleLoader/es6-module-loader#circular-references--bindings) treat circular dependencies differently.
127+
126128
Circular references and live bindings are fully supported identically to ES6 in this polyfill.
127129

128130
That is:
@@ -160,6 +162,8 @@ odd.js
160162
});
161163
```
162164

165+
When using [SystemJS](https://github.com/systemjs/systemjs) loader, AMD and CommonJS preserve their own circular reference behavior.
166+
163167
### Moving to Production
164168

165169
When in production, it is not suitable to load ES6 modules and syntax in the browser.

0 commit comments

Comments
 (0)