In a project I\'m collaborating on, we have two choices on which module system we can use:
require
, and exporting using
There are several usage / capabilities you might want to consider:
Require:
require
s, they are
loaded and processed one by one.ES6 Imports:
Also, the Require module system isn't standard based. It's is highly unlikely to become standard now that ES6 modules exist. In the future there will be native support for ES6 Modules in various implementations which will be advantageous in terms of performance.