All the available module kinds.
All the available module kinds.
They are listed in decreasing order of "importance", as judged by whoever maintains the back-ends.
A CommonJS module (notably used by Node.js).
A CommonJS module (notably used by Node.js).
Imported modules are fetched with require
. Exports go to the exports
module-global variable.
An ECMAScript 2015 module.
An ECMAScript 2015 module.
Scala.js imports and exports directly map to import
and export
clauses in the ES module.
No module structure.
No module structure.
With this module kind, exports are stored on the global object by
default, or to a separate object specified with
ScalaJSEnv.exportsNamespace
.
Imports are not supported.