ECMAScript Modules

GPTKB entity

Statements (33)
Predicate Object
gptkbp:instanceOf JavaScript module system
gptkbp:abbreviation gptkb:ESM
gptkbp:alsoKnownAs gptkb:ES_Modules
gptkbp:canBeLoadedWith type="module" in HTML
gptkbp:compatibleWith dynamic require
gptkbp:defaultMimeType text/javascript
gptkbp:enables code splitting
tree shaking
modular JavaScript code
asynchronous module loading
gptkbp:exportSyntax export ...
gptkbp:fileExtension .mjs
gptkbp:hasFeature lexical scoping
declarative syntax
strict mode by default
live bindings
circular dependency handling
hoisted imports and exports
https://www.w3.org/2000/01/rdf-schema#label ECMAScript Modules
gptkbp:importSyntax import ... from ...
gptkbp:introducedIn gptkb:ECMAScript_6
gptkbp:replacedBy CommonJS in some environments
gptkbp:specifies gptkb:ECMA-262
module scope
gptkbp:standardizedBy gptkb:Ecma_International
gptkbp:supports static analysis
import statement
export statement
top-level await
gptkbp:usedIn gptkb:Node.js
browsers
gptkbp:bfsParent gptkb:ES_Modules
gptkbp:bfsLayer 6