|
gptkbp:instanceOf
|
gptkb:JavaScript_language_feature
|
|
gptkbp:canBeBundledBy
|
gptkb:Parcel
gptkb:Rollup
gptkb:Webpack
|
|
gptkbp:canBeLoaded
|
dynamically (import())
statically
|
|
gptkbp:canBeLoadedWith
|
dynamic import()
script type="module"
|
|
gptkbp:canBeTranspiledBy
|
gptkb:Babel
gptkb:TypeScript
|
|
gptkbp:canImport
|
classes
objects
variables
functions
URLs (in browsers)
node_modules
relative paths
|
|
gptkbp:compatibleWith
|
top-level await (before ES2022)
|
|
gptkbp:defaultExport
|
export default
|
|
gptkbp:doesNotPollute
|
global namespace
|
|
gptkbp:enables
|
dependency management
code reuse
modular programming
tree shaking
|
|
gptkbp:exportedTo
|
classes
objects
variables
functions
|
|
gptkbp:exportIsHoisted
|
true
|
|
gptkbp:fileExtension
|
.js
.mjs
|
|
gptkbp:hasSyntax
|
import
export
|
|
gptkbp:importDefaultSyntax
|
import name from 'module'
|
|
gptkbp:importIsHoisted
|
true
|
|
gptkbp:importSyntax
|
import { name } from 'module'
|
|
gptkbp:introducedIn
|
gptkb:ECMAScript_2015
|
|
gptkbp:namedExport
|
export
|
|
gptkbp:replacedBy
|
AMD modules
CommonJS modules (in browsers)
|
|
gptkbp:scope
|
module scope
|
|
gptkbp:standardizedBy
|
gptkb:ECMA_International
|
|
gptkbp:strictMode
|
always enabled
|
|
gptkbp:supportedBy
|
modern browsers
Node.js (with .mjs or type: module)
|
|
gptkbp:supports
|
top-level await (from ES2022)
|
|
gptkbp:usedIn
|
web development
Node.js applications
front-end frameworks
|
|
gptkbp:bfsParent
|
gptkb:HTML_Imports
|
|
gptkbp:bfsLayer
|
5
|
|
https://www.w3.org/2000/01/rdf-schema#label
|
JavaScript modules
|