Statements (25)
Predicate | Object |
---|---|
gptkbp:instanceOf |
JavaScript module system
|
gptkbp:alsoKnownAs |
gptkb:ECMAScript_modules
|
gptkbp:compatibleWith |
gptkb:CommonJS_modules
|
gptkbp:defaultExportSyntax |
export default
|
gptkbp:enables |
dependency management
code reuse modular code structure |
gptkbp:feature |
import
export |
gptkbp:fileExtension |
.js
.mjs |
gptkbp:hasSyntax |
export function bar() {}
import {foo} from './foo.js'; |
https://www.w3.org/2000/01/rdf-schema#label |
ES6 modules
|
gptkbp:importSyntax |
import
|
gptkbp:introducedIn |
gptkb:ECMAScript_2015
|
gptkbp:namedExportSyntax |
export
|
gptkbp:standardizedBy |
gptkb:ECMA_International
|
gptkbp:supportedBy |
modern browsers
Node.js (with .mjs or "type": "module") |
gptkbp:supports |
static analysis
tree shaking |
gptkbp:usedIn |
modern JavaScript applications
|
gptkbp:bfsParent |
gptkb:HTML_Imports
|
gptkbp:bfsLayer |
5
|