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 committed Jun 23, 2017
1 parent 815a389 commit 6fbd7b7
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 6fbd7b7

Please sign in to comment.