Expand description
The script module mod contains common traits and structs
related to type=module
for script thread or worker threads.
Structsยง
- Dynamic
Module ๐ - Dynamic
Module ๐List - Import
Map ๐ - https://html.spec.whatwg.org/multipage/#import-map-processing-model
- Module
Context ๐ - The context required for asynchronously loading an external module script source.
- Module
Handler ๐ - Module
Object ๐ - Module
Script ๐ - Module
Source ๐ - Module
Tree ๐ - Resolved
Module ๐ - https://html.spec.whatwg.org/multipage/#specifier-resolution-record
- Rethrow
Error ๐ - Script
Fetch ๐Options - https://html.spec.whatwg.org/multipage/#script-fetch-options
Enumsยง
- Module
Identity ๐ - Identity for a module which will be used to retrieve the module when weโd like to get it from module map.
- Module
Owner ๐ - The owner of the module
It can be
worker
orscript
element - Module
Status ๐
Functionsยง
- Ensure
Module ๐ โHooks Initialized - A function to register module hooks (e.g. listening on resolving modules, getting module metadata, getting script private reference and resolving dynamic import)
- Host
Populate ๐ โImport Meta - https://tc39.es/ecma262/#sec-hostgetimportmetaproperties https://html.spec.whatwg.org/multipage/#hostgetimportmetaproperties
- Host
Resolve ๐ โImported Module - https://tc39.es/ecma262/#sec-HostLoadImportedModule https://html.spec.whatwg.org/multipage/#hostloadimportedmodule
- fetch_
an_ ๐import_ module_ script_ graph - https://html.spec.whatwg.org/multipage/#fetch-an-import()-module-script-graph
- fetch_
external_ ๐module_ script - https://html.spec.whatwg.org/multipage/#fetch-a-module-script-tree
- fetch_
inline_ ๐module_ script - https://html.spec.whatwg.org/multipage/#fetch-an-inline-module-script-graph
- fetch_
single_ ๐module_ script - https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
- gen_
type_ ๐error - host_
add_ ๐ โref_ top_ level_ script - host_
import_ ๐ โmodule_ dynamically - https://tc39.es/ecma262/#sec-hostimportmoduledynamically https://html.spec.whatwg.org/multipage/#hostimportmoduledynamically(referencingscriptormodule,-specifier,-promisecapability)
- host_
release_ ๐ โtop_ level_ script - merge_
existing_ ๐and_ new_ import_ maps - https://html.spec.whatwg.org/multipage/#merge-existing-and-new-import-maps
- merge_
module_ ๐specifier_ maps - https://html.spec.whatwg.org/multipage/#merge-module-specifier-maps
- module_
script_ ๐ โfrom_ reference_ private - normalize_
module_ ๐integrity_ map - https://html.spec.whatwg.org/multipage/#normalizing-a-module-integrity-map
- normalize_
specifier_ ๐key - https://html.spec.whatwg.org/multipage/#normalizing-a-specifier-key
- parse_
an_ ๐import_ map_ string - https://html.spec.whatwg.org/multipage/#parse-an-import-map-string
- register_
import_ ๐map - https://html.spec.whatwg.org/multipage/#register-an-import-map
- resolve_
imports_ ๐match - https://html.spec.whatwg.org/multipage/#resolving-an-imports-match
- sort_
and_ ๐normalize_ module_ specifier_ map - https://html.spec.whatwg.org/multipage/#sorting-and-normalizing-a-module-specifier-map
- sort_
and_ ๐normalize_ scopes - https://html.spec.whatwg.org/multipage/#sorting-and-normalizing-scopes
Type Aliasesยง
- Module
Integrity ๐Map - Module
Specifier ๐Map