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 3076fd4 commit 11d6d51
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 11d6d51

Please sign in to comment.