Expand description
The script module mod contains common traits and structs
related to type=module for script thread or worker threads.
Structsยง
- 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
Status ๐
Constantsยง
- SLOT_
MODULEPRIVATE ๐
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_
a_ ๐module_ script_ graph - https://html.spec.whatwg.org/multipage/#fetch-a-module-worker-script-tree https://html.spec.whatwg.org/multipage/#fetch-a-worklet/module-worker-script-graph
- fetch_
a_ ๐modulepreload_ module - https://html.spec.whatwg.org/multipage/#fetch-a-modulepreload-module-script-graph
- fetch_
a_ ๐single_ module_ script - https://html.spec.whatwg.org/multipage/#fetch-a-single-module-script
- fetch_
an_ ๐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_
the_ ๐descendants_ and_ link_ module_ script - https://html.spec.whatwg.org/multipage/#fetch-the-descendants-of-and-link-a-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 - import_
meta_ ๐ โresolve - module_
script_ ๐ โfrom_ reference_ private - resolve_
imports_ ๐match - https://html.spec.whatwg.org/multipage/#resolving-an-imports-match
Type Aliasesยง
- Module
Request ๐