Statements (25)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb: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'; |
| 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
|
| https://www.w3.org/2000/01/rdf-schema#label |
ES6 modules
|