tooling.report

feature

Importing modules

Consume modules in various popular formats

Person in labcoat walking left

Why

Modern JavaScript provides an official syntax for defining and importing modules. Along with this syntax, there are also a number of userland module systems in widespread use, including CommonJS, AMD and SystemJS. The varied nature of JavaScript usage means build tools are responsible for reconciling these module formats and enabling cross-compatibility when multiple module formats are used in a single application.

Applications are often composed of a mix of ECMAScript and CommonJS modules, many of which are third-party code installed from package registries like npm. At present, the majority of modules available on npm are published as CommonJS due to its historical support in runtimes like Node.js, however the ecosystem is gradually shifting to prefer ECMAScript Modules with CommonJS used as a fallback.

Use the (+) card below & tell us if we missed a capability!

Plant with tall leafs and vines in a pot

Questions or Concerns?

We want to hear from you, let us know how to make this better. Open up a GitHub issue and we’ll track it there. Thanks!

Open a GitHub Issue