On this page

These types are not exported by webpack, but they are available to TypeScript consumers.

Returns compiler or MultiCompiler.

Attributes

Returns the compiler object.

Attributes

Returns the compiler object.

Attributes

Returns the multi compiler object.

Attributes

Returns the multi compiler object.


Attributes

  • [index: {string}] <any>
Attributes
webpackAST:<object>

Attributes
alias:<Alias>
onlyModule:<boolean>

Attributes
assetInfo:<AssetInfo>
an asset info for asset modules
chunkInitFragments:<InitFragment>
< <any> >[] chunk init fragments for javascript modules
filename:<string>
a filename for asset modules
fullContentHash:<string>
a full content hash for asset modules
share-init:
<Tuple> < <object> > share-init for modules federation
topLevelDeclarations:<Set>
< <string> > top level declarations for javascript modules
url for asset modules

Attributes
dispose:<Function>
module:<Function>

Attributes
__innerRequest:<string>
inner request for internal usage
__innerRequest_relativePath:<string>
inner relative path for internal usage
__innerRequest_request:<string>
inner request for internal usage
content
descriptionFileData:<JsonObjectTypes>
description file data
descriptionFilePath:<string>
description file path
descriptionFileRoot:<string>
description file root
fullySpecified:<boolean>
true when full specified, otherwise false
ignoreSymlinks:<boolean>
true when need to ignore symlinks, otherwise false
path:<string> | <false>
path
relativePath:<string>
relative path
tsconfigPathsMap:<TsconfigPathsMap> | <null>
tsconfig paths map

Creates a multi compiler.

Attributes
result:
{T}
Returns:
{R}

Creates a multi compiler.


Attributes
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
code generation results of other modules (need to have a codeGenerationDependency to use that)
compilation:<Compilation>
the compilation
concatenationScope:<ConcatenationScope>
when in concatenated module, information about other concatenated modules
dependencyTemplates:<DependencyTemplates>
the dependency templates
moduleGraph:<ModuleGraph>
the module graph
the runtimes code should be generated for
runtimes:<RuntimeSpec>
[] all runtimes code should be generated for
runtimeTemplate:<RuntimeTemplate>
the runtime template
sourceTypes:
<ReadonlySet> < <string> > source types

Attributes

Attributes
context:<string>

Attributes

Attributes
range:
<Tuple> < <number> , <number> >
updated:<boolean>

Checks whether this object is sorted.

Attributes
contextModuleFactory:<ContextModuleFactory>
normalModuleFactory:<NormalModuleFactory>

Attributes
absolutePath:<string> | <null>
absolute form of  name (with slash ending), null when not absolute
alias:<Alias>
alias target(s)
arrayAlias:<boolean>
true when  alias is an array — precomputed so the hot path skips Array.isArray
firstCharCode:<number>
first character code of  name — used as a cheap screen on the hot path. -1 indicates "matches any first char" (empty wildcard prefix).
original alias name
nameWithSlash:<string>
name + "/" — precomputed to avoid per-resolve concat
onlyModule:<boolean>
normalized onlyModule flag
wildcardPrefix:<string> | <null>
substring before the single "*" in  name , null when no wildcard
wildcardSuffix:<string> | <null>
substring after the single "*" in  name , null when no wildcard

Attributes
chunkGraph:<ChunkGraph>
the chunk graph
moduleGraph:<ModuleGraph>
the module graph

Attributes
context:<string>
contextDependencies:<LazySet>
dependencies:<ContextDependency>
[]
fileDependencies:<LazySet>
missingDependencies:<LazySet>
request:<string>
resolveOptions:<ResolveOptions>

Attributes
context:<string>
context directory for resolving
extractSourceMap:<boolean>
enable/disable extracting source map
generator:<Generator>
the generator used
generatorOptions:<GeneratorOptions>
the options of the generator used
layer:<string>
an optional layer in which the module is
loaders:<LoaderItem>
[] list of loaders
matchResource:<string>
path + query of the matched resource (virtual)
the parser used
parserOptions:<ParserOptions>
the options of the parser used
rawRequest:<string>
request without resolving
request:<string>
request string
resolveOptions:<ResolveOptions>
options used for resolving requests from this module
resource:<string>
path + query of the real resource
resourceResolveData:<ResourceSchemeData>
& <Partial> < <ResolveRequest> > resource resolve data
module type. When deserializing, this is set to an empty string "".
userRequest:<string>
request intended by user (without loaders from config)

Attributes
esModule:<boolean>
whether export __esModule
exportLocs:<Map>
< <string> , <object> > source position (line is 1-based, column is 0-based) of each export's defining identifier in the original CSS, used to emit fine-grained JS-to-CSS source mappings
exports:<Map>
< <string> , <string> > the css exports

Returns location of targetPath relative to rootPath.

Attributes
isBlockDevice:<Function>
true when is block device, otherwise false
isCharacterDevice:<Function>
true when is character device, otherwise false
isDirectory:<Function>
true when is directory, otherwise false
isFIFO:<Function>
true when is FIFO, otherwise false
isFile:<Function>
true when is file, otherwise false
isSocket:<Function>
true when is socket, otherwise false
isSymbolicLink:<Function>
true when is symbolic link, otherwise false
name:
{T} name
parentPath:<string>
path
path

Attributes
isBlockDevice:<Function>
true when is block device, otherwise false
isCharacterDevice:<Function>
true when is character device, otherwise false
isDirectory:<Function>
true when is directory, otherwise false
isFIFO:<Function>
true when is FIFO, otherwise false
isFile:<Function>
true when is file, otherwise false
isSocket:<Function>
true when is socket, otherwise false
isSymbolicLink:<Function>
true when is symbolic link, otherwise false
name:
{T} name
parentPath:<string>
path
path

The mappings from request to module info.



The abilities of the environment where the webpack generated code should run.

Attributes
arrowFunction:<boolean>
The environment supports arrow functions ('() => { ... }').
asyncFunction:<boolean>
The environment supports async function and await ('async function () { await ... }').
bigIntLiteral:<boolean>
The environment supports BigInt as literal (123n).
const:<boolean>
The environment supports const and let for variable declarations.
destructuring:<boolean>
The environment supports destructuring ('{ a, b } = obj').
document:<boolean>
The environment supports 'document'.
dynamicImport:<boolean>
The environment supports an async import() function to import EcmaScript modules.
dynamicImportInWorker:<boolean>
The environment supports an async import() is available when creating a worker.
forOf:<boolean>
The environment supports 'for of' iteration ('for (const x of array) { ... }').
globalThis:<boolean>
The environment supports 'globalThis'.
importMetaDirnameAndFilename:<boolean>
The environment supports  import.meta.dirname and import.meta.filename .
methodShorthand:<boolean>
The environment supports object method shorthand ('{ module() {} }').
module:<boolean>
The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').
nodePrefixForCoreModules:<boolean>
The environment supports  node: prefix for Node.js core modules.
optionalChaining:<boolean>
The environment supports optional chaining ('obj?.a' or 'obj?.()').
templateLiteral:<boolean>
The environment supports template literals.


Enables/Disables experiments (experimental features with relax SemVer compatibility).

  • [index: {string}] <any>
Attributes
asyncWebAssembly:<boolean>
Support WebAssembly as asynchronous EcmaScript Module.
backCompat:<boolean>
Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.
[] Build http(s): urls using a lockfile and resource content cache.
cacheUnaffected:<boolean>
Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.
Enable css support.
deferImport:<boolean>
Enable experimental tc39 proposal  https://github.com/tc39/proposal-defer-import-eval . This allows to defer execution of a module until it's first use.
futureDefaults:<boolean>
Apply defaults of next major version.
Enable experimental HTML support. This flag does not by itself make  .html files usable directly as entry points without additional HTML handling.
Compile entrypoints and import()s only when they are accessed.
outputModule:<boolean>
Allow output javascript files as module source type.
sourceImport:<boolean>
Enable experimental tc39 proposal  https://github.com/tc39/proposal-source-phase-imports . This allows importing modules at source phase.
syncWebAssembly:<boolean>
Support WebAssembly as synchronous EcmaScript Module (outdated).
typescript:<boolean>
Enable typescript support.

Enables/Disables experiments (experimental features with relax SemVer compatibility).

Attributes
asyncWebAssembly:<boolean>
Support WebAssembly as asynchronous EcmaScript Module.
backCompat:<boolean>
Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.
Build http(s): urls using a lockfile and resource content cache.
cacheUnaffected:<boolean>
Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.
Enable css support.
deferImport:<boolean>
Enable experimental tc39 proposal  https://github.com/tc39/proposal-defer-import-eval . This allows to defer execution of a module until it's first use.
futureDefaults:<boolean>
Apply defaults of next major version.
Enable HTML entry support. Treats  .html files as a first-class module type so they can be used directly as entry points.
lazyCompilation:
<false> | <LazyCompilationOptions> Compile entrypoints and import()s only when they are accessed.
outputModule:<boolean>
Allow output javascript files as module source type.
sourceImport:<boolean>
Enable experimental tc39 proposal  https://github.com/tc39/proposal-source-phase-imports . This allows importing modules at source phase.
syncWebAssembly:<boolean>
Support WebAssembly as synchronous EcmaScript Module (outdated).
typescript:<boolean>
Enable typescript support.

Attributes
canMangle:<boolean>
can the export be renamed (defaults to true)
export:<string>
[] | <null> when reexported: from which export
[] nested exports
when reexported: from which module
hidden:<boolean>
export is not visible, because another export blends over it
the name of the export
priority:<number>
when reexported: with which priority
terminalBinding:<boolean>
is the export a terminal binding that should be checked for export star conflicts

Attributes
canMangle:<boolean>
can the export be renamed (defaults to true)
dependencies:<Module>
[] module on which the result depends on
excludeExports:<Set>
< <string> > when exports = true, list of unaffected exports
exports:
<true> | <string> | <ExportSpec> [] | <null> exported names, true for unknown exports or null for no exports
when reexported: from which module
hideExports:<Set>
< <string> > | <null> list of maybe prior exposed, but now hidden exports
priority:<number>
when reexported: with which priority
terminalBinding:<boolean>
are the exports terminal bindings that should be checked for export star conflicts

Advanced configuration for modules that should be exposed by this container.

Attributes
[] Request to a module that should be exposed by this container.
Custom chunk name for the exposed module.

Modules that should be exposed by this container. Property names are used as public paths.


Attributes
sideEffectFree:<boolean>

Creates a deprecation.


Attributes
safeTime:<number>
timestamp:<number>

Returns location of targetPath relative to rootPath.

Attributes

Attributes
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
code generation results of other modules (need to have a codeGenerationDependency to use that)
concatenationScope:<ConcatenationScope>
when in concatenated module, information about other concatenated modules
dependencyTemplates:<DependencyTemplates>
mapping from dependencies to templates
getData:<Function>
get access to the code generation data
moduleGraph:<ModuleGraph>
the module graph
the runtime
runtimeRequirements:<Set>
< <string> > the requirements for runtime
runtimeTemplate:<RuntimeTemplate>
the runtime template
which kind of code should be generated

Attributes
generatedColumn:<number>
generated column
generatedLine:<number>
generated line
source:<string>
source


Attributes

Attributes
digest:<Function>
get hash digest
update:<Function>
make hash update

Attributes
references:
{string[][]}

Options for infrastructure level logging.

Attributes
appendOnly:<boolean>
Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.
colors:<boolean>
Enables/Disables colorful output. This option is only used when no custom console is provided.
console:<Console>
Custom console used for logging.
[] | <Function> Enable debug logging for specific loggers.
level:
<"error"> | <"warn"> | <"info"> | <"log"> | <"none"> | <"verbose"> Log level.
& <object> Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.

Returns location of targetPath relative to rootPath.

Attributes
createWriteStream:<Function>
mkdirSync:<MkdirSync>
open:<Open>
read:<Read>
< <ArrayBufferView> < <ArrayBufferLike> >>
rename:<Function>

Returns location of targetPath relative to rootPath.

Attributes
atime:<Date>
atimeMs:
{T}
birthtime:<Date>
birthtimeMs:
{T}
blksize:
{T}
blocks:
{T}
ctime:<Date>
ctimeMs:
{T}
dev:
{T}
gid:
{T}
ino:
{T}
isBlockDevice:<Function>
isCharacterDevice:<Function>
isDirectory:<Function>
isFIFO:<Function>
isFile:<Function>
isSocket:<Function>
isSymbolicLink:<Function>
mode:
{T}
mtime:<Date>
mtimeMs:
{T}
nlink:
{T}
rdev:
{T}
size:
{T}
uid:
{T}

Attributes
atime:<Date>
atime
atimeMs:
{T} atime ms
birthtime:<Date>
birthtime
birthtimeMs:
{T} birthtime ms
blksize:
{T} blksize
blocks:
{T} blocks
ctime:<Date>
ctime
ctimeMs:
{T} ctime ms
dev:
{T} dev
gid:
{T} gid
ino:
{T} ino
isBlockDevice:<Function>
is block device
isCharacterDevice:<Function>
is character device
isDirectory:<Function>
is directory
isFIFO:<Function>
is FIFO
isFile:<Function>
is file
isSocket:<Function>
is socket
isSymbolicLink:<Function>
is symbolic link
mode:
{T} mode
mtime:<Date>
mtime
mtimeMs:
{T} mtime ms
nlink:
{T} nlink
rdev:
{T} rdev
size:
{T} size
uid:
{T} uid

Returns location of targetPath relative to rootPath.

Attributes
atime:<Date>
atimeMs:<number>
birthtime:<Date>
birthtimeMs:<number>
blksize:<number>
blocks:<number>
ctime:<Date>
ctimeMs:<number>
isBlockDevice:<Function>
isCharacterDevice:<Function>
isDirectory:<Function>
isFIFO:<Function>
isFile:<Function>
isSocket:<Function>
isSymbolicLink:<Function>
mtime:<Date>
mtimeMs:<number>
nlink:<number>

Attributes
atime:<Date>
atime
atimeMs:<number>
atime ms
birthtime:<Date>
birthtime
birthtimeMs:<number>
birthtime ms
blksize:<number>
blksize
blocks:<number>
blocks
ctime:<Date>
ctime
ctimeMs:<number>
ctime ms
dev
gid
ino
isBlockDevice:<Function>
is block device
isCharacterDevice:<Function>
is character device
isDirectory:<Function>
is directory
isFIFO:<Function>
is FIFO
isFile:<Function>
is file
isSocket:<Function>
is socket
isSymbolicLink:<Function>
is symbolic link
mode
mtime:<Date>
mtime
mtimeMs:<number>
mtime ms
nlink:<number>
nlink
rdev
size
uid





Attributes
active:<boolean>
for lazy compilation modules
assetInfo:<AssetInfo>
for assets modules
assets:
<Record> < <string> , <Source> > using in NormalModule
assetsInfo:<Map>
< <string> , <AssetInfo> | <undefined> > using in NormalModule
buildDependencies:<LazySet>
< <string> > using in NormalModule
cacheable:<boolean>
charset:<string>
for css modules (charset at-rule)
contextDependencies:<LazySet>
< <string> > using in NormalModule
cssData:<CssData>
for css modules
dataUrl:<boolean>
for assets modules
exportsArgument:<string>
using in AMD
fileDependencies:<LazySet>
< <string> > using in NormalModule
filename:<string>
for assets modules
fullContentHash:<string>
for assets modules
using in NormalModule
javascriptModule:<boolean>
for external modules
jsonData:<JsonData>
for json modules
missingDependencies:<LazySet>
< <string> > using in NormalModule
moduleArgument:<string>
using in AMD
moduleConcatenationBailout:<string>
using in CommonJs
needCreateRequire:<boolean>
using in APIPlugin
parsed:<boolean>
resourceIntegrity:<string>
using in HttpUriPlugin
snapshot:<Snapshot> | <null>
using in ContextModule
strict:<boolean>
topLevelDeclarations:<Set>
< <string> > top level declaration names
valueDependencies:<Map>
< <string> , <ValueCacheVersion> > using in NormalModule

Attributes
async:<boolean>
defaultObject:
<false> | <"redirect"> | <"redirect-warn">
exportsFinalNameByRuntime:<Map>
< <string> , <Record> < <string> , <string> >>
exportsSourceByRuntime:<Map>
exportsType:
<"default"> | <"dynamic"> | <"namespace"> | <"flagged">
isCssModule:<boolean>
jsIncompatibleExports:
<Record> < <string> , <string> >
needIdInConcatenation:<boolean>
sideEffectFree:<boolean>
strictHarmonyModule:<boolean>
treatAsCommonJs:<boolean>

Attributes
environments:<string>
[] environments

Checks whether this object is sorted.

Attributes
aggressiveSplits:<SplitData>
[]
chunkHashes:<ChunkHashes>
chunkModuleHashes:<ChunkModuleHashes>
chunkModuleIds:<ChunkModuleIds>
chunkRuntime:<ChunkRuntime>
fullHashChunkModuleHashes:<FullHashChunkModuleHashes>
hotIndex:<number>

Returns array of values.

Attributes
auxiliaryChunkIdHints:<string>
[]
auxiliaryChunkNames:<ChunkName>
[]
auxiliaryChunks:<ChunkId>
[]
cached:<boolean>
chunkIdHints:<string>
[]
chunkNames:<ChunkName>
[]
chunks:<ChunkId>
[]
comparedForEmit:<boolean>
emitted:<boolean>
filteredRelated:<number>
isOverSizeLimit:<boolean>
related:<StatsAsset>
[]

Returns array of values.

Attributes
[]
assetsByChunkName:
<Record> < <string> , <string> []>
builtAt:<number>
[]
entrypoints:
env:<any>
[]
errorsCount:<number>
filteredAssets:<number>
filteredErrorDetailsCount:<number>
filteredModules:<number>
filteredWarningDetailsCount:<number>
logging:
<Record> < <string> , <StatsLogging> >
[]
namedChunkGroups:
needAdditionalPass:<boolean>
outputPath:<string>
publicPath:<string>
version:<string>
warnings:<StatsError>
[]
warningsCount:<number>

Returns array of values.

Attributes
debug:<boolean>
filteredEntries:<number>

Returns array of values.

Attributes
args:<any>
[]
message:<string>
trace:<string>
[]

Returns array of values.

Attributes
additionalIntegration:<number>
additionalResolving:<number>
building:<number>
dependencies:<number>
factory:<number>
integration:<number>
resolving:<number>
restoring:<number>
storing:<number>
total:<number>

Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
Attributes

Attributes
Attributes
Attributes
Attributes
Attributes
Attributes
Attributes

Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
Attributes

Attributes

Extract fragment index.

Attributes
getContent:<Function>
getEndContent:<Function>
mergeAll:<Function>
position:<number>
stage:<number>

Attributes
Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>

Attributes
Attributes
Attributes

Attributes
compilation:<Compilation>
fileSystemInfo:<FileSystemInfo>
valueCacheVersions:<Map>

Returns location of targetPath relative to rootPath.

  • encoding <"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <null>

  • encoding <"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <null> encoding

Attributes
safeTime:<number>

Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>

Enables/Disables integrated optimizations.

Attributes
avoidEntryIife:<boolean>
Avoid wrapping the entry module in an IIFE.
checkWasmTypes:<boolean>
Check for incompatible wasm types when importing/exporting from/to ESM.
chunkIds:
<false> | <"size"> | <"natural"> | <"named"> | <"deterministic"> | <"total-size"> Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).
concatenateModules:<boolean>
Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.
emitOnErrors:<boolean>
Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.
flagIncludedChunks:<boolean>
Also flag chunks as loaded which contain a subset of the modules.
innerGraph:<boolean>
Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.
mangleExports:<boolean> | <"size"> | <"deterministic">
Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports, true/"deterministic": generate short deterministic names optimized for caching, "size": generate the shortest possible names).
mangleWasmImports:<boolean>
Reduce size of WASM by changing imports to shorter strings.
mergeDuplicateChunks:<boolean>
Merge chunks which contain the same modules.
minimize:<boolean>
Enable minimizing the output. Uses optimization.minimizer.
minimizer:
<false> | <""> | <0> | <"..."> | <WebpackPluginInstance> | <Function> | <null> | <undefined> [] Minimizer(s) to use for minimizing the output.
moduleIds:
<false> | <"size"> | <"natural"> | <"named"> | <"deterministic"> | <"hashed"> Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).
nodeEnv:<string> | <false>
Set process.env.NODE_ENV to a specific value.
noEmitOnErrors:<boolean>
Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).
portableRecords:<boolean>
Generate records with relative paths to be able to move the context folder.
providedExports:<boolean>
Figure out which exports are provided by modules to generate more efficient code.
realContentHash:<boolean>
Use real [contenthash] based on final content of the assets.
removeAvailableModules:<boolean>
Removes modules from chunks when these modules are already included in all parents.
removeEmptyChunks:<boolean>
Remove chunks which are empty.
runtimeChunk:<boolean> | <"single"> | <"multiple"> | <object>
Create an additional chunk which contains only the webpack runtime and chunk hash maps.
sideEffects:<boolean> | <"flag">
Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).
splitChunks:
<false> | <OptimizationSplitChunksOptions> Optimize duplication and caching by splitting chunks by shared modules and cache group.
usedExports:<boolean> | <"global">
Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code (true: analyse used exports for each runtime, "global": analyse exports globally for all runtimes combined).

Enables/Disables integrated optimizations.

Attributes
avoidEntryIife:<boolean>
Avoid wrapping the entry module in an IIFE.
checkWasmTypes:<boolean>
Check for incompatible wasm types when importing/exporting from/to ESM.
chunkIds:
<false> | <"size"> | <"natural"> | <"named"> | <"deterministic"> | <"total-size"> Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).
concatenateModules:<boolean>
Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.
emitOnErrors:<boolean>
Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.
flagIncludedChunks:<boolean>
Also flag chunks as loaded which contain a subset of the modules.
innerGraph:<boolean>
Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.
mangleExports:<boolean> | <"size"> | <"deterministic">
Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports, true/"deterministic": generate short deterministic names optimized for caching, "size": generate the shortest possible names).
mangleWasmImports:<boolean>
Reduce size of WASM by changing imports to shorter strings.
mergeDuplicateChunks:<boolean>
Merge chunks which contain the same modules.
minimize:<boolean>
Enable minimizing the output. Uses optimization.minimizer.
[] Minimizer(s) to use for minimizing the output.
moduleIds:
<false> | <"size"> | <"natural"> | <"named"> | <"deterministic"> | <"hashed"> Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).
nodeEnv:<string> | <false>
Set process.env.NODE_ENV to a specific value.
noEmitOnErrors:<boolean>
Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).
portableRecords:<boolean>
Generate records with relative paths to be able to move the context folder.
providedExports:<boolean>
Figure out which exports are provided by modules to generate more efficient code.
realContentHash:<boolean>
Use real [contenthash] based on final content of the assets.
removeAvailableModules:<boolean>
Removes modules from chunks when these modules are already included in all parents.
removeEmptyChunks:<boolean>
Remove chunks which are empty.
runtimeChunk:
<false> | <object> Create an additional chunk which contains only the webpack runtime and chunk hash maps.
sideEffects:<boolean> | <"flag">
Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).
splitChunks:
<false> | <OptimizationSplitChunksOptions> Optimize duplication and caching by splitting chunks by shared modules and cache group.
usedExports:<boolean> | <"global">
Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code (true: analyse used exports for each runtime, "global": analyse exports globally for all runtimes combined).

Attributes

Options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.

Attributes
amdContainer:<string>
Add a container for define/require functions in the AMD module.
assetModuleFilename:<string> | <TemplatePathFn>
< <PathDataModule> > The filename of asset modules as relative path inside the 'output.path' directory.
asyncChunks:<boolean>
Enable/disable creating async chunks that are loaded on demand.
Add a comment in the UMD wrapper.
charset:<boolean>
Add charset attribute for script tag.
chunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of output files of non-initial chunks on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
chunkFormat:<string> | <false>
The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).
chunkLoading:<string> | <false>
The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
chunkLoadingGlobal:<string>
The global variable used by webpack for loading of chunks.
chunkLoadTimeout:<number>
Number of milliseconds before chunk request expires.
Clean the output directory before emit.
compareBeforeEmit:<boolean>
Check if to be emitted file already exists and have the same content before writing to output filesystem.
crossOriginLoading:
<false> | <"use-credentials"> | <"anonymous"> This option enables cross-origin loading of chunks.
cssChunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of non-initial output css files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
< <PathDataChunk> > Specifies the filename template of output css files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
devtoolFallbackModuleFilenameTemplate:<string> | <Function>
Similar to  output.devtoolModuleFilenameTemplate , but used in the case of duplicate module identifiers.
devtoolModuleFilenameTemplate:<string> | <Function>
Filename template string of function for the sources array in a generated SourceMap.
devtoolNamespace:<string>
Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to  output.library if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.
enabledChunkLoadingTypes:<string>
[] List of chunk loading types enabled for use by entry points.
enabledLibraryTypes:<string>
[] List of library types enabled for use by entry points.
enabledWasmLoadingTypes:<string>
[] List of wasm loading types enabled for use by entry points.
environment:<Environment>
The abilities of the environment where the webpack generated code should run.
< <PathDataChunk> > Specifies the filename of output files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
globalObject:<string>
An expression which is used to address the global object/scope in runtime code.
hashDigest:<string>
Digest types used for the hash.
hashDigestLength:<number>
Number of chars which are used for the hash.
hashFunction:<string> | <typeof Hash>
Algorithm used for generation the hash (see node.js crypto package).
hashSalt:<string>
Any string which is added to the hash to salt it.
hotUpdateChunkFilename:<string>
The filename of the Hot Update Chunks. They are inside the output.path directory.
hotUpdateGlobal:<string>
The global variable used by webpack for loading of hot update chunks.
hotUpdateMainFilename:<string>
The filename of the Hot Update Main File. It is inside the 'output.path' directory.
htmlChunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of non-initial output html files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
htmlFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of output html files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
ignoreBrowserWarnings:<boolean>
Ignore warnings in the browser.
Wrap javascript code into IIFE's to avoid leaking into global scope.
importFunctionName:<string>
The name of the native import() function (can be exchanged for a polyfill).
importMetaName:<string>
The name of the native import.meta object (can be exchanged for a polyfill).
library:<string> | <string>
[] | <LibraryCustomUmdObject> | <LibraryOptions> Make the output files a library, exporting the exports of the entry point.
libraryExport:<string> | <string>
[] Specify which export should be exposed as library.
libraryTarget:<string>
Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
module:<boolean>
Output javascript files as module source type.
The output directory as  absolute path (required).
pathinfo:<boolean> | <"verbose">
Include comments with information about the modules.
< <PathData> > The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
scriptType:
<false> | <"module"> | <"text/javascript"> This option enables loading async chunks via a custom script type, such as script type="module".
sourceMapFilename:<string>
The filename of the SourceMaps for the JavaScript files. They are inside the 'output.path' directory.
sourcePrefix:<string>
Prefixes every line of the source in the bundle with this string.
strictModuleErrorHandling:<boolean>
Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.
strictModuleExceptionHandling:<boolean>
Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
trustedTypes:<string> | <true> | <TrustedTypes>
Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.
umdNamedDefine:<boolean>
If  output.libraryTarget is set to umd and output.library is set, setting this to true will name the AMD module.
uniqueName:<string>
A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals.
wasmLoading:<string> | <false>
The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).
webassemblyModuleFilename:<string>
The filename of WebAssembly modules as relative path inside the 'output.path' directory.
workerChunkLoading:<string> | <false>
The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
workerPublicPath:<string>
Worker public path. Much like the public path, this sets the location where the worker script file is intended to be found. If not set, webpack will use the publicPath. Don't set this option unless your worker scripts are located at a different path from your other script files.
workerWasmLoading:<string> | <false>
The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).

Normalized options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.

Attributes
assetModuleFilename:<string> | <TemplatePathFn>
< <PathDataModule> > The filename of asset modules as relative path inside the 'output.path' directory.
asyncChunks:<boolean>
Enable/disable creating async chunks that are loaded on demand.
charset:<boolean>
Add charset attribute for script tag.
chunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of output files of non-initial chunks on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
chunkFormat:<string> | <false>
The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).
chunkLoading:<string> | <false>
The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
chunkLoadingGlobal:<string>
The global variable used by webpack for loading of chunks.
chunkLoadTimeout:<number>
Number of milliseconds before chunk request expires.
Clean the output directory before emit.
compareBeforeEmit:<boolean>
Check if to be emitted file already exists and have the same content before writing to output filesystem.
crossOriginLoading:
<false> | <"use-credentials"> | <"anonymous"> This option enables cross-origin loading of chunks.
cssChunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of non-initial output css files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
< <PathDataChunk> > Specifies the filename template of output css files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
devtoolFallbackModuleFilenameTemplate:<string> | <Function>
Similar to  output.devtoolModuleFilenameTemplate , but used in the case of duplicate module identifiers.
devtoolModuleFilenameTemplate:<string> | <Function>
Filename template string of function for the sources array in a generated SourceMap.
devtoolNamespace:<string>
Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to  output.library if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.
enabledChunkLoadingTypes:<string>
[] List of chunk loading types enabled for use by entry points.
enabledLibraryTypes:<string>
[] List of library types enabled for use by entry points.
enabledWasmLoadingTypes:<string>
[] List of wasm loading types enabled for use by entry points.
environment:<Environment>
The abilities of the environment where the webpack generated code should run.
< <PathDataChunk> > Specifies the filename of output files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
globalObject:<string>
An expression which is used to address the global object/scope in runtime code.
hashDigest:<string>
Digest types used for the hash.
hashDigestLength:<number>
Number of chars which are used for the hash.
hashFunction:<string> | <typeof Hash>
Algorithm used for generation the hash (see node.js crypto package).
hashSalt:<string>
Any string which is added to the hash to salt it.
hotUpdateChunkFilename:<string>
The filename of the Hot Update Chunks. They are inside the output.path directory.
hotUpdateGlobal:<string>
The global variable used by webpack for loading of hot update chunks.
hotUpdateMainFilename:<string>
The filename of the Hot Update Main File. It is inside the 'output.path' directory.
htmlChunkFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of non-initial output html files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
htmlFilename:<string> | <TemplatePathFn>
< <PathDataChunk> > Specifies the filename template of output html files on disk. You must  not specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
ignoreBrowserWarnings:<boolean>
Ignore warnings in the browser.
Wrap javascript code into IIFE's to avoid leaking into global scope.
importFunctionName:<string>
The name of the native import() function (can be exchanged for a polyfill).
importMetaName:<string>
The name of the native import.meta object (can be exchanged for a polyfill).
Options for library.
module:<boolean>
Output javascript files as module source type.
The output directory as  absolute path (required).
pathinfo:<boolean> | <"verbose">
Include comments with information about the modules.
< <PathData> > The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
scriptType:
<false> | <"module"> | <"text/javascript"> This option enables loading async chunks via a custom script type, such as script type="module".
sourceMapFilename:<string>
The filename of the SourceMaps for the JavaScript files. They are inside the 'output.path' directory.
sourcePrefix:<string>
Prefixes every line of the source in the bundle with this string.
strictModuleErrorHandling:<boolean>
Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.
strictModuleExceptionHandling:<boolean>
Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
trustedTypes:<TrustedTypes>
Use a Trusted Types policy to create urls for chunks.
uniqueName:<string>
A unique name of the webpack build to avoid multiple webpack runtimes to conflict when using globals.
wasmLoading:<string> | <false>
The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).
webassemblyModuleFilename:<string>
The filename of WebAssembly modules as relative path inside the 'output.path' directory.
workerChunkLoading:<string> | <false>
The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
workerPublicPath:<string>
Worker public path. Much like the public path, this sets the location where the worker script file is intended to be found. If not set, webpack will use the publicPath. Don't set this option unless your worker scripts are located at a different path from your other script files.
workerWasmLoading:<string> | <false>
The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).

Attributes
directory:<boolean>
is directory
is file
fragment:<string>
fragment
internal:<boolean>
is internal
module:<boolean>
is module
query:<string>
query
request:<string>
request


Attributes
compilation:<Compilation>
source:<string> | <Buffer>
< <ArrayBufferLike> >

Returns check if version is greater or equal.

Attributes
browser:<boolean> | <null>
browser platform, running in a normal web browser
electron:<boolean> | <null>
electron platform, require of some electron built-in modules is available
node platform, require of node built-in modules is available
nwjs platform, require of legacy nw.gui is available
web platform, importing of http(s) and std: is available
webworker:<boolean> | <null>
(Web)Worker platform, running in a web/shared/service worker

Attributes
resolveToUnqualified:<Function>
resolve to unqualified

  • [index: {string}] <any>

Attributes
debugId:<string>
debug id
file
ignoreList:<number>
[] ignore list
mappings:<string>
mappings
names:<string>
[] names
sourceRoot:<string>
source root
sources:<string>
[] sources
sourcesContent:<string>
[] sources content
version:<number>
version

Attributes
buffer:
{TBuffer}
offset:<number>
length:<number>
position:<number> | <bigint> | <null>
callback:<Function>
Returns:<void>
Attributes
< <TBuffer> >
callback:<Function>
Returns:<void>
Attributes
callback:<Function>
Returns:<void>

Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes
options:
<"buffer"> | <object>
callback:<Function>
Returns:<void>
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsFs> & <object> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
encoding:
{"buffer"}
recursive:<boolean>
withFileTypes:
{true}
callback:<Function>
Returns:<void>

Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object> | <null>
Returns:<string>
[]
Attributes
options:
<"buffer"> | <object>
Returns:
<Buffer> < <ArrayBufferLike> >[]
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsFs> & <object> | <null>
Returns:<string>
[] | <Buffer> < <ArrayBufferLike> >[]
Attributes
Attributes
encoding:
{"buffer"}
recursive:<boolean>
withFileTypes:
{true}
Returns:<DirentFs>
< <Buffer> < <ArrayBufferLike> >>[]

Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes
options:
<"buffer"> | <object>
callback:<Function>
Returns:<void>
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsTypes> & <object> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
encoding:
{"buffer"}
recursive:<boolean>
withFileTypes:
{true}
callback:<Function>
Returns:<void>

Attributes
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object> & <Abortable>
callback:<Function>
Returns:<void>
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsFs> & <object> & <Abortable> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes

Attributes
options:<object> | <null>
Returns:
{Buffer}
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object>
Returns:<string>
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsFs> & <object> | <null>
Returns:<string> | <Buffer>
< <ArrayBufferLike> >

Attributes
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <object> & <Abortable>
callback:<Function>
Returns:<void>
Attributes
options:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsTypes> & <object> & <Abortable> | <null> | <undefined>
callback:<Function>
Returns:<void>
Attributes

Attributes
Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>

Attributes
Attributes
Returns:
{Buffer}
Attributes
Returns:<string> | <Buffer>
< <ArrayBufferLike> >

Attributes
Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>

Attributes
Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>

Attributes
Attributes
Returns:
{Buffer}
Attributes
Returns:<string> | <Buffer>
< <ArrayBufferLike> >

Attributes
Attributes
Attributes
Attributes
callback:<Function>
Returns:<void>


Attributes
canMangle:<boolean>
when false, referenced export can not be mangled, defaults to true
[] name of the referenced export

Advanced configuration for container locations from which modules should be resolved and loaded at runtime.

Attributes
external:<string> | <string>
[] Container locations from which modules should be resolved and loaded at runtime.
shareScope:<string>
The name of the share scope shared with this remote.

Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.


Attributes
chunk:<Chunk>
the chunk
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
results of code generation
hash to be used for render call
moduleGraph:<ModuleGraph>
the module graph
runtimeTemplate:<RuntimeTemplate>
the runtime template

Attributes
encodedContent:<string>
encoded content of the resource
encoding:
<false> | <"base64"> encoding of the resource
mimetype:<string>
mime type of the resource
parameters:<string>
additional parameters for the resource

Helper function for joining two ranges into a single range. This is useful when working with AST nodes, as it allows you to combine the ranges of child nodes to create the range of the parent node.

Attributes
inShorthand:<string> | <boolean>
inTaggedTemplateTag:<boolean>
inTry:<boolean>
isAsmJs:<boolean>
isStrict:<boolean>
terminated:
<2> | <1>
topLevelScope:<boolean> | <"arrow">

Advanced configuration for modules that should be shared in the share scope.

Attributes
eager:<boolean>
Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
import:<string> | <false>
Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.
packageName:<string>
Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.
requiredVersion:<string> | <false>
Version requirement from module in share scope.
shareKey:<string>
Module is looked up under this key from the share scope.
shareScope:<string>
Share scope name.
singleton:<boolean>
Allow only a single version of the shared module in share scope (disabled by default).
strictVersion:<boolean>
Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).
version:<string> | <false>
Version of the provided module. Will replace lower matching versions, but not higher.

Modules that should be shared in the share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.


Attributes
source

Attributes
buffer:<Function>
buffer
buffers:<Function>
buffers
clearCache:<Function>
clear cache
map
size
source:<Function>
source
sourceAndMap:<Function>
source and map
updateHash:<Function>
hash updater

Attributes
column:<number>

Attributes

Attributes
chunk:<Chunk>
the chunk
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
results of code generation
dependencyTemplates:<DependencyTemplates>
the dependency templates
inlined:<boolean>
inlined
inlinedInIIFE:<boolean>
the inlined entry module is wrapped in an IIFE
moduleGraph:<ModuleGraph>
the module graph
needExportsDeclaration:<boolean>
whether the top-level exports declaration needs to be generated
runtimeTemplate:<RuntimeTemplate>
the runtime template
strictMode:<boolean>
rendering in strict context

Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
Attributes

Returns location of targetPath relative to rootPath.

Attributes
bigint:<boolean>

Attributes
bigint:<boolean>
need bigint values

Attributes
Attributes
Attributes
Attributes
Attributes
Attributes
Attributes

Attributes
callback:<Function>
Returns:<void>
Attributes
Attributes
Attributes


Use a Trusted Types policy to create urls for chunks.

  • onPolicyCreationFailure <"continue"> | <"stop"> If the call to trustedTypes.createPolicy(...) fails -- e.g., due to the policy name missing from the CSP trusted-types list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that require-trusted-types-for 'script' isn't enforced yet, versus fail immediately. Default behavior is 'stop'.
  • policyName <string> The name of the Trusted Types policy created by webpack to serve bundle chunks.

Attributes
tsconfig file data
modules:<string>
[] tsconfig file data

Attributes
allContexts:<object>
all contexts (main + refs) for quick lookup
contextList:<string>
[] precomputed  Object.keys(allContexts) — read-only; used on the _selectPathsDataForContext hot path
fileDependencies:<Set>
< <string> > file dependencies
main tsconfig paths data
mainContext:<string>
main tsconfig base URL (absolute path)
referenced tsconfig paths data mapped by baseUrl

Attributes
chunkGraph:<ChunkGraph>
the module
runtimeTemplate:<RuntimeTemplate>

Extends:<URL>

Returns location of targetPath relative to rootPath.

Attributes
closes the watcher and all underlying file watchers
getAggregatedChanges:<Function>
get current aggregated changes that have not yet send to callback
getAggregatedRemovals:<Function>
get current aggregated removals that have not yet send to callback
getContextTimeInfoEntries:<Function>
get info about directories
getFileTimeInfoEntries:<Function>
get info about files
getInfo:<Function>
get info about timestamps and changes
closes the watcher, but keeps underlying file watchers alive until the next watch call

Returns location of targetPath relative to rootPath.

Attributes
changes:<Set>
< <string> > | <null> get current aggregated changes that have not yet send to callback
contextTimeInfoEntries:<Map>
< <string> , <"ignore"> | <EntryTypesIndex> | <OnlySafeTimeEntry> | <ExistenceOnlyTimeEntryTypesIndex> | <null> > get info about directories
fileTimeInfoEntries:<Map>
removals:<Set>
< <string> > | <null> get current aggregated removals that have not yet send to callback

Attributes
data:<string> | <ArrayBufferView>
< <ArrayBufferLike> >
callback:<Function>
Returns:<void>
Attributes
data:<string> | <ArrayBufferView>
< <ArrayBufferLike> >
callback:<Function>
Returns:<void>

Attributes

Attributes
resolveDependencies:<Function>
resource:<string> | <string>
[]
resourceFragment:<string>
resourceQuery:<string>

Type:<string> | <false> | <string>
[]


Type:
<"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex">

Type:
<"buffer"> | <object>

& <Record> < <string> , <any> >

& <Record> < <string> , <any> >

Type:
<SimpleCallExpression> | <NewExpression>

Type:
<Omit> < <Map> < <string> , <any> >, <"get"> | <"set"> | <"has"> | <"delete"> > & <CodeGenMapOverloads>



Type:
<CommentImport> & <object>
Attributes
loc:
{SourceLocation}
start:<number>

Type:<boolean> | <typeof CIRCULAR_CONNECTION> | <typeof TRANSITIVE_ONLY>

Type:<Item>
< <T> > | <string> | <Item> < <T> >[]

Type:
<"weak"> | <"eager"> | <"lazy"> | <"lazy-once"> | <"sync"> | <"async-weak">

& <Record> < <any> , <any> >

Attributes

Attributes


Type:
<3> | <5> | <6> | <7> | <8> | <9> | <10> | <11> | <12> | <13> | <14> | <15> | <16> | <17> | <2015> | <2016> | <2017> | <2018> | <2019> | <2020> | <2021> | <2022> | <2023> | <2024> | <2025> | <2026> | <"latest">

Type:<undefined> | <null> | <"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsFs>

Type:<undefined> | <null> | <"ascii"> | <"utf8"> | <"utf-8"> | <"utf16le"> | <"utf-16le"> | <"ucs2"> | <"ucs-2"> | <"base64"> | <"base64url"> | <"latin1"> | <"binary"> | <"hex"> | <ObjectEncodingOptionsTypes>

Attributes
details:<string>

Type:
<0> | <1> | <2> | <3>

Type:
<"namespace"> | <"default-only"> | <"default-with-named"> | <"dynamic">

Type:


Type:<string> | <typeof Hash>

Attributes
atimeNs:<bigint>
birthtimeNs:<bigint>
ctimeNs:<bigint>
mtimeNs:<bigint>

Attributes
atimeNs:<bigint>
birthtimeNs:<bigint>
ctimeNs:<bigint>
mtimeNs:<bigint>

Type:
<ImportExpressionImport> & <object>
  • phase <"defer"> | <"source">

Type:
<0> | <1> | <2>

Attributes
< <undefined> | <"none"> | <"verbose"> | <"error"> | <"warn"> | <"info"> | <"log"> >




& <Partial> < <object> >


Type:
<T> & <object>

Attributes
avoidEntryIife:<NonNullable>
checkWasmTypes:<NonNullable>
chunkIds:<NonNullable>
< <undefined> | <false> | <"natural"> | <"named"> | <"deterministic"> | <"size"> | <"total-size"> >
concatenateModules:<NonNullable>
flagIncludedChunks:<NonNullable>
mangleExports:<NonNullable>
< <undefined> | <boolean> | <"deterministic"> | <"size"> >
mangleWasmImports:<NonNullable>
mergeDuplicateChunks:<NonNullable>
moduleIds:<NonNullable>
< <undefined> | <false> | <"natural"> | <"named"> | <"deterministic"> | <"size"> | <"hashed"> >
< <undefined> | <string> | <false> >
portableRecords:<NonNullable>
providedExports:<NonNullable>
realContentHash:<NonNullable>
removeAvailableModules:<NonNullable>
removeEmptyChunks:<NonNullable>
runtimeChunk:<NonNullable>
< <undefined> | <false> | <object> >
sideEffects:<NonNullable>
< <undefined> | <boolean> | <"flag"> >
usedExports:<NonNullable>
< <undefined> | <boolean> | <"global"> >

Attributes
chunkFormat:<NonNullable>
< <undefined> | <string> | <false> >
chunkLoading:<NonNullable>
< <undefined> | <string> | <false> >
chunkLoadingGlobal:<string>
chunkLoadTimeout:<number>
compareBeforeEmit:<NonNullable>
crossOriginLoading:<NonNullable>
< <undefined> | <false> | <"anonymous"> | <"use-credentials"> >
devtoolNamespace:<string>
globalObject:<string>
hashDigest:<string>
hashDigestLength:<number>
hashFunction:<NonNullable>
< <undefined> | <string> | <typeof Hash> >
hotUpdateChunkFilename:<string>
hotUpdateGlobal:<string>
hotUpdateMainFilename:<string>
importFunctionName:<string>
importMetaName:<string>
pathinfo:<NonNullable>
< <undefined> | <boolean> | <"verbose"> >
scriptType:<NonNullable>
< <undefined> | <false> | <"module"> | <"text/javascript"> >
sourceMapFilename:<string>
strictModuleErrorHandling:<NonNullable>
strictModuleExceptionHandling:<NonNullable>
uniqueName:<string>
wasmLoading:<NonNullable>
< <undefined> | <string> | <false> >
webassemblyModuleFilename:<string>
workerChunkLoading:<NonNullable>
< <undefined> | <string> | <false> >
workerPublicPath:<string>
workerWasmLoading:<NonNullable>
< <undefined> | <string> | <false> >

& <Record> < <string> , <any> >

Type:<string> | <Buffer> | <URL>

Type:<string> | <URL_url> | <Buffer>

Type:<string> | <number> | <Buffer> | <URL>

Type:<string> | <number> | <Buffer> | <URL_url>

Type:<undefined> | <null> | <false> | <""> | <0> | <object> | <Function>

Type:<string> | <false>

& <Record> < <string> , <KnownRecords> []> & <Record> < <string> , <any> >



Type:
<ServerImportHttp> < <typeof IncomingMessage> > | <ServerImportHttps> < <typeof IncomingMessage> >

Attributes
buildDependencies:<object>
immutablePaths:<string> | <RegExp>
[]
managedPaths:<string> | <RegExp>
[]
module:<object>
resolve:<object>
resolveBuildDependencies:<object>
unmanagedPaths:<string> | <RegExp>
[]

Type:<string> | <Buffer>


Type:
<0> | <1> | <2> | <3> | <4>