These types are not exported by webpack, but they are available to TypeScript consumers.
Attributes
context:
<string>the directory in which the request is placed
contextInfo:
<ModuleFactoryCreateDataContextInfo>contextual information
dependencyType:
<string>the category of the referencing dependency
getResolve:
<object>get a resolve function with the current resolver options
request:
<string>the request as written by the user in the require/import expression/statement
If an dependency matches exactly a property of the object, the property value is used as dependency.
Attributes
If an dependency matches exactly a property of the object, the property value is used as dependency.
[index: {string}]<ExternalItemValue>
chunkCondition<SyncBailHook><<Tuple><<Chunk>,<Compilation>>,<boolean>>
Attributes
deferred:
<boolean>the module is deferred at least once
deferredName:
<string>deferred module.exports / harmony namespace object
deferredNamespaceObjectName:
<string>deferred namespace object that being used in a not-analyzable way so it must be materialized
deferredNamespaceObjectUsed:
<boolean>deferred namespace object that being used in a not-analyzable way so it must be materialized
index:
<number>interopDefaultAccessName:
<string>runtime namespace object that detects "__esModule"
interopDefaultAccessUsed:
<boolean>runtime namespace object that detects "__esModule"
interopNamespaceObject2Name:
<string>"default-only" namespace
interopNamespaceObject2Used:
<boolean>"default-only" namespace
interopNamespaceObjectName:
<string>"default-with-named" namespace
interopNamespaceObjectUsed:
<boolean>"default-with-named" namespace
module:
<Module>name:
<string>module.exports / harmony namespace object
nonDeferAccess:
<boolean>type:
{"external"}
Enable presets of externals for specific targets.
Attributes
electron:
<boolean>Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.
electronMain:
<boolean>Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.
electronPreload:
<boolean>Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.
electronRenderer:
<boolean>Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.
node:
<boolean>Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.
nwjs:
<boolean>Treat NW.js legacy nw.gui module as external and load it via require() when used.
web:
<boolean>Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).
webAsync:
<boolean>Treat references to 'http(s)://...' and 'std:...' as external and load them via async import() when used (Note that this external type is an async module, which has various effects on the execution).
Attributes
callback:
<object>Returns:
{void}
Attributes
options:
<ResolveOptions>Attributes
Returns:
{void}
Attributes
Attributes
Returns:
<Promise>[] |
<RequestRecord>Type:
<string>
|
<RegExp>
|
<ExternalItemObjectKnown>
|
<ExternalItemObjectUnknown>
|
<object>
|
<object>
|
<ExternalItem>[]
Type:
<ExternalsPresets>
|
<object>Attributes
electron:
<NonNullable><
<undefined>
|
<boolean>
>electronMain:
<NonNullable><
<undefined>
|
<boolean>
>electronPreload:
<NonNullable><
<undefined>
|
<boolean>
>electronRenderer:
<NonNullable><
<undefined>
|
<boolean>
>node:
<NonNullable><
<undefined>
|
<boolean>
>nwjs:
<NonNullable><
<undefined>
|
<boolean>
>web:
<NonNullable><
<undefined>
|
<boolean>
>Type:
<"import">
|
<"var">
|
<"module">
|
<"assign">
|
<"this">
|
<"window">
|
<"self">
|
<"global">
|
<"commonjs">
|
<"commonjs2">
|
<"commonjs-module">
|
<"commonjs-static">
|
<"amd">
|
<"amd-require">
|
<"umd">
|
<"umd2">
|
<"jsonp">
|
<"system">
|
<"promise">
|
<"module-import">
|
<"script">
|
<"node-commonjs">
|
<"asset">
|
<"asset-url">
|
<"css-import">
|
<"css-url">