Skip to content

Commit

Permalink
Add note on dynamic require vs dynamic import
Browse files Browse the repository at this point in the history
  • Loading branch information
futpib authored and ljharb committed Jun 23, 2017
1 parent e67ef79 commit 9a90f8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/rules/no-commonjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if (typeof window !== "undefined") {
but `module.exports` is reported as usual.

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

### Allow primitive modules

Expand Down

0 comments on commit 9a90f8b

Please sign in to comment.