ES Module VS CommonJS
Definition :
To put it simply, ES Module is like import xxx from xxxx
, while CommonJS is used by default in NodeJs, e.g. const xxx = require(xxxx)
.
To put it simply, ES Module is like import xxx from xxxx
, while CommonJS is used by default in NodeJs, e.g. const xxx = require(xxxx)
.