Skip to content

Commit 1c9f61c

Browse files
futpibljharb
authored andcommittedJun 23, 2017
Add note on dynamic require vs dynamic import
1 parent d038a0c commit 1c9f61c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎docs/rules/no-commonjs.md

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ if (typeof window !== "undefined") {
3636
but `module.exports` is reported as usual.
3737

3838
This is useful for conditional requires.
39+
If you don't rely on synchronous module loading, check out [dynamic import](https://github.com/airbnb/babel-plugin-dynamic-import-node).
3940

4041
### Allow primitive modules
4142

0 commit comments

Comments
 (0)
Please sign in to comment.