These types are not exported by webpack, but they are available to TypeScript consumers.
Returns compiler or MultiCompiler.
Returns the compiler object.
ConfigurationCompilerReturns the compiler object.
MultiConfigurationCallbackWebpackFunction_2<MultiStats, void>MultiCompiler | nullReturns the multi compiler object.
MultiConfigurationMultiCompilerReturns the multi compiler object.
AbortSignal[index: {string}]any
objectAssetInfoInitFragment<any>[]stringstring{ asset-url?: string; javascript?: string }(module: Module) => ModuleResultstringstringstring{ blocked: boolean }RestrictionsPlugin
flips when it filters out an existing target, letting
ExportsFieldPlugin
fall back instead of erroringContextTypesJsonObjectTypesstringstringbooleanbooleanstring | falsestringTsconfigPathsMap | nullCreates a multi compiler.
Creates a multi compiler.
ChunkGraphCodeGenerationResultsCompilationConcatenationScopeDependencyTemplatesModuleGraphRuntimeSpecRuntimeSpec[]RuntimeTemplateReadonlySet<string>(key: K) => boolean(key: K) => CodeGenValue<K> | undefined(key: K) => boolean(key: K, value: CodeGenValue<K>) => CodeGenerationResultDataCompatibilitySettingsDeclarationstringChecks whether this object is sorted.
ContextModuleFactoryNormalModuleFactorystring | nullname
(with slash ending), null when not absoluteAliasbooleanalias
is an array — precomputed so the hot path skips
Array.isArraynumbername
— used as a cheap screen on the hot path.
-1
indicates "matches any first char" (empty wildcard prefix).stringstringbooleanstring | nullname
, null when no wildcardstring | nullname
, null when no wildcardChunkGraphbooleanModuleGraphstringbooleanGeneratorGeneratorOptionsstringLoaderItem[]stringParserParserOptionsstringstringResolveOptionsstringResourceSchemeData & Partial<ResolveRequest>ModuleSettingsstringstringReturns location of targetPath relative to rootPath.
() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleanTstringstring() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleanTstringstringThe mappings from request to module info.
[index: {string}]{ buildMeta?: { [index: string]: any }; exports?: true | string[]; id: string | number }
The abilities of the environment where the webpack generated code should run.
boolean...
').booleanawait ...
').booleanbooleanbooleana, b
= obj').booleanbooleanbooleanboolean...
').booleanyield ...
').booleanbooleanbooleanimport.meta.dirname
and
import.meta.filename
.booleanbooleanbooleanmodule() {}
').booleanboolean<link rel="modulepreload">
to preload EcmaScript modules.booleanprocess.getBuiltinModule()
to synchronously load Node.js core modules.booleannode:
prefix for Node.js core modules.booleanboolean...obj
', 'fn(...args)').booleanbooleanEnables/Disables experiments (experimental features with relax SemVer compatibility).
[index: {string}]any
boolean | "auto""auto"
(the default) enables it unless a loader is registered for WebAssembly files.booleanHttpUriOptions | (string | RegExp | ((uri: string) => boolean))[]booleanboolean | "auto""auto"
(the default) enables the built-in CSS support unless a loader is registered for CSS files.booleanbooleanboolean | "auto".html
files as a first-class module type so they can be used directly as entry points.
"auto"
(the default) enables it unless a loader is registered for HTML files.boolean | LazyCompilationOptionsbooleanbooleanbooleanboolean | "auto""auto"
(the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.Enables/Disables experiments (experimental features with relax SemVer compatibility).
boolean | "auto""auto"
(the default) enables it unless a loader is registered for WebAssembly files.booleanHttpUriOptionsbooleanboolean | "auto""auto"
(the default) enables the built-in CSS support unless a loader is registered for CSS files.booleanbooleanboolean | "auto".html
files as a first-class module type so they can be used directly as entry points.
"auto"
(the default) enables it unless a loader is registered for HTML files.false | LazyCompilationOptionsbooleanbooleanbooleanboolean | "auto""auto"
(the default) enables the built-in TypeScript support when Node.js supports it (>= 22.6) and no loader is registered for TypeScript files.booleanstring[] | null(string | ExportSpec)[]booleanInlinedValuebooleanstringnumberbooleanbooleanModule[]true | (string | ExportSpec)[] | nullbooleannumberbooleanAdvanced configuration for modules that should be exposed by this container.
Modules that should be exposed by this container. Property names are used as public paths.
[index: {string}]string | string[] | ExposesConfig
booleanCreates a deprecation.
Returns location of targetPath relative to rootPath.
ChunkGraphCodeGenerationResultsConcatenationScopeDependencyTemplates() => CodeGenerationResultDataModuleGraphRuntimeSpecRuntimeTemplatestringModulestringEnable/disable evaluating import.meta fields. Omitted fields are enabled and unknown fields are preserved. Custom fields are allowed.
booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanEnable/disable evaluating import.meta fields. Omitted fields are enabled and unknown fields are preserved. Custom fields are allowed.
[index: {string}]boolean
ImportExpressionJavascriptParserstring[][]Options for infrastructure level logging.
booleanbooleanConsole"error" | "warn" | "info" | "log" | "none" | "verbose"boolean | "auto""auto"
shows it only for interactive terminals. This option is only used when no custom console is provided.WritableStream & { columns?: number; isTTY?: boolean; rows?: number }Returns location of targetPath relative to rootPath.
(pathLike: PathLikeFs, result?: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | WriteStreamOptions) => WritableStreamMkdirSyncOpenRead<ArrayBufferView<ArrayBufferLike>>(a: PathLikeFs, b: PathLikeFs, callback: (err: ErrnoException | null) => void) => voidReturns location of targetPath relative to rootPath.
DateTDateTTTDateTTTT() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleanTDateTTTTTDateTDateTTTDateTTTT() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleanTDateTTTTTReturns location of targetPath relative to rootPath.
DatenumberDatenumbernumbernumberDatenumbernumbernumbernumber() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleannumberDatenumbernumbernumbernumbernumberDatenumberDatenumbernumbernumberDatenumbernumbernumbernumber() => boolean() => boolean() => boolean() => boolean() => boolean() => boolean() => booleannumberDatenumbernumbernumbernumbernumber[index: {string}]string | number | boolean | JsonObjectFs | JsonValueFs[] | null | undefined
[index: {string}]string | number | boolean | JsonObjectTypes | JsonValueTypes[] | null | undefined
booleanstringbooleanstringstring[]booleanbooleanfor await…of
, which can't be lowered to a generatorstring[]Checks whether this object is sorted.
SplitData[]ChunkHashesChunkModuleHashesChunkModuleIdsChunkRuntimeRecordsChunksFullHashChunkModuleHashesstringnumberRecordsModulesReturns array of values.
string[]ChunkName[]ChunkId[]booleanstring[]ChunkName[]ChunkId[]booleanbooleannumberAssetInfobooleanstringStatsAsset[]numberstringReturns array of values.
StatsAsset[]numberStatsCompilation[]StatsChunk[]Record<string, StatsChunkGroup>anyStatsError[]numbernumbernumbernumbernumberstringRecord<string, StatsLogging>StatsModule[]stringRecord<string, StatsChunkGroup>booleanstringstringnumberstringStatsError[]numberReturns array of values.
Returns array of values.
Returns array of values.
PathLikeFsStatOptionsFs & { bigint: true }(err: ErrnoException | null, result?: IBigIntStatsFs) => voidvoidPathLikeFsStatOptionsFs | undefined(err: ErrnoException | null, result?: IStatsFs | IBigIntStatsFs) => voidvoidPathLikeFsIStatsFsPathLikeFsStatSyncOptions & { bigint: true; throwIfNoEntry?: true }IBigIntStatsFsPathLikeFsStatSyncOptions & { bigint?: false; throwIfNoEntry: false }PathLikeFsStatSyncOptions & { bigint: true; throwIfNoEntry: false }IBigIntStatsFs | undefinedPathLikeFsStatSyncOptions & { bigint: boolean; throwIfNoEntry?: true }IStatsFs | IBigIntStatsFsPathLikeTypesStatOptionsTypes & { bigint?: false } | undefined(err: ErrnoException | null, result?: IStatsTypes) => voidvoidPathLikeTypesStatOptionsTypes & { bigint: true }(err: ErrnoException | null, result?: IBigIntStatsTypes) => voidvoidPathLikeTypesStatOptionsTypes | undefined(err: ErrnoException | null, result?: IStatsTypes | IBigIntStatsTypes) => voidvoidExtract fragment index.
(context: GenerateContext) => string | Source | undefined(context: GenerateContext) => string | Source | undefinedstring(fragments: MaybeMergeableInitFragment<GenerateContext>) => MaybeMergeableInitFragment<GenerateContext>(fragments: MaybeMergeableInitFragment<GenerateContext>[]) => MaybeMergeableInitFragment<GenerateContext>[]numbernumberPathLikeFsstring | number | MakeDirectoryOptions & { recursive?: false } | null | undefined(err: ErrnoException | null) => voidvoidPathLikeFsstring | number | MakeDirectoryOptions & { recursive?: false } | nullvoidCompilationFileSystemInfoMap<string, ValueCacheVersion>Returns location of targetPath relative to rootPath.
"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | nullnumberEnables/Disables integrated optimizations.
booleanbooleanfalse | "size" | "natural" | "named" | "deterministic" | "total-size"boolean | ConcatenateModulesOptionsbooleanbooleanbooleanbooleanboolean | "size" | "deterministic"booleanbooleanboolean(false | "" | 0 | "..." | WebpackPluginInstance | ((this: Compiler, compiler: Compiler) => void) | null | undefined)[]false | "size" | "natural" | "named" | "deterministic" | "hashed"string | falsebooleanbooleanbooleanbooleanbooleanbooleanboolean | "single" | "multiple" | { name?: string | ((entrypoint: { name: string }) => string) }boolean | "flag"false | OptimizationSplitChunksOptionsboolean | "global"Enables/Disables integrated optimizations.
booleanbooleanfalse | "size" | "natural" | "named" | "deterministic" | "total-size"boolean | ConcatenateModulesOptionsbooleanbooleanbooleanbooleanboolean | "size" | "deterministic"booleanbooleanboolean("..." | WebpackPluginInstance | ((this: Compiler, compiler: Compiler) => void))[]false | "size" | "natural" | "named" | "deterministic" | "hashed"string | falsebooleanbooleanbooleanbooleanbooleanbooleanboolean | "flag"false | OptimizationSplitChunksOptionsboolean | "global"Options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.
stringstring | TemplatePathFn<PathDataModule>booleanstring | LibraryCustomUmdCommentObjectbooleanstring | TemplatePathFn<PathDataChunk>string | falsestring | falsestringnumberboolean | CleanOptionsbooleanfalse | "use-credentials" | "anonymous"string | TemplatePathFn<PathDataChunk>string | TemplatePathFn<PathDataChunk>string | ((context: ModuleFilenameTemplateContext) => string)output.devtoolModuleFilenameTemplate
, but used in the case of duplicate module identifiers.string | ((context: ModuleFilenameTemplateContext) => string)stringoutput.library
if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.string[]string[]string[]Environmentstring | TemplatePathFn<PathDataChunk>stringstringnumberstringstringstringstringboolean | OutputHtmlOptionshtml
option.string | TemplatePathFn<PathDataChunk>string | TemplatePathFn<PathDataChunk>booleanbooleanstringstringstring | string[] | LibraryCustomUmdObject | LibraryOptionsstringbooleanstringboolean | "verbose"string | TemplatePathFn<PathData>boolean | "preload" | "prefetch" | "none" | ResourceHintsOptions | HtmlResourceHintWebpackOptions[] | ((context: { compilation: Compilation; defaultHints: (HtmlResourceHintHtmlEntryDependency & { hostChunks: string[] })[]; entryName: string; entrypoint: Entrypoint; hostType: "html" | "js" }) => HtmlResourceHintHtmlEntryDependency[])<link rel="prefetch">
/
<link rel="preload">
/
<link rel="modulepreload">
/
<link rel="preconnect">
) emission for extracted HTML entries and URL-referenced assets. Accepts the initial-graph shorthand (boolean /
"prefetch"
/
"preload"
/
"none"
/
HtmlResourceHint[]
/ function — equivalent to
{ initial: <value> }
) or the full object form
{ initial, urlHints, preconnect, modulePreloadPolyfill, manifest }
.
initial
defaults on for ESM output (
output.module
), where native
import()
would otherwise waterfall; classic output stays opt-in.false | "module" | "text/javascript"stringstringbooleanbooleanbooleanstring | true | TrustedTypesbooleanoutput.libraryTarget
is set to umd and
output.library
is set, setting this to true will name the AMD module.stringstring | falseboolean.wasm
files with the
application/wasm
MIME type.stringstring | TemplatePathFn<PathDataChunk>string | falsestringstring | falseNormalized options affecting the output of the compilation. output options tell webpack how to write the compiled files to disk.
string | TemplatePathFn<PathDataModule>booleanbooleanstring | TemplatePathFn<PathDataChunk>string | falsestring | falsestringnumberboolean | CleanOptionsbooleanfalse | "use-credentials" | "anonymous"string | TemplatePathFn<PathDataChunk>string | TemplatePathFn<PathDataChunk>string | ((context: ModuleFilenameTemplateContext) => string)output.devtoolModuleFilenameTemplate
, but used in the case of duplicate module identifiers.string | ((context: ModuleFilenameTemplateContext) => string)stringoutput.library
if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.string[]string[]string[]Environmentstring | TemplatePathFn<PathDataChunk>stringstringnumberstringstringstringstringboolean | OutputHtmlOptionshtml
option.string | TemplatePathFn<PathDataChunk>string | TemplatePathFn<PathDataChunk>booleanbooleanstringstringLibraryOptionsbooleanstringboolean | "verbose"string | TemplatePathFn<PathData>ResourceHintsOptionsfalse | "module" | "text/javascript"stringstringbooleanbooleanbooleanTrustedTypesstringstring | falseboolean.wasm
files with the
application/wasm
MIME type.stringstring | TemplatePathFn<PathDataChunk>string | falsestringstring | falseProgramCommentJavascriptParser[]CompilationNormalModuleNormalModulestring | Buffer<ArrayBufferLike>Returns check if version is greater or equal.
boolean | nullboolean | nullboolean | nullnode:
specifier) and web APIs are availableboolean | nullboolean | nullboolean | nullboolean | null"universal"
or
["web", "node"]
)boolean | nullboolean | null[index: {string}]any
PathLikeFs"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null; recursive?: boolean; withFileTypes?: false } | null | undefinedvoidPathLikeFs"buffer" | { encoding: "buffer"; recursive?: boolean; withFileTypes?: false }(err: ErrnoException | null, files?: Buffer<ArrayBufferLike>[]) => voidvoidPathLikeFs"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsFs & { recursive?: boolean; withFileTypes?: false } | null | undefinedvoidPathLikeFsObjectEncodingOptionsFs & { recursive?: boolean; withFileTypes: true }voidPathLikeFs"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null; recursive?: boolean; withFileTypes?: false } | nullstring[]PathLikeFs"buffer" | { encoding: "buffer"; recursive?: boolean; withFileTypes?: false }Buffer<ArrayBufferLike>[]PathLikeFs"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsFs & { recursive?: boolean; withFileTypes?: false } | nullstring[] | Buffer<ArrayBufferLike>[]PathLikeFsObjectEncodingOptionsFs & { recursive?: boolean; withFileTypes: true }PathLikeFs"buffer"booleantrueDirentFs<Buffer<ArrayBufferLike>>[]PathLikeTypes"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | null; recursive?: boolean; withFileTypes?: false } | null | undefinedvoidPathLikeTypes"buffer" | { encoding: "buffer"; recursive?: boolean; withFileTypes?: false }(err: ErrnoException | null, files?: Buffer<ArrayBufferLike>[]) => voidvoidPathLikeTypes"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes?: false } | null | undefinedvoidPathLikeTypesObjectEncodingOptionsTypes & { recursive?: boolean; withFileTypes: true }(err: ErrnoException | null, files?: DirentTypes<string>[]) => voidvoidPathLikeTypes"buffer"booleantrue(err: ErrnoException | null, files: DirentTypes<Buffer<ArrayBufferLike>>[]) => voidvoid"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: BufferEncoding; flag?: string } & Abortablevoid"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsFs & { flag?: string } & Abortable | null | undefinedvoid"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: BufferEncoding; flag?: string }string"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsFs & { flag?: string } | nullstring | Buffer<ArrayBufferLike>"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | { encoding: BufferEncoding; flag?: string } & Abortablevoid"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypes & { flag?: string } & Abortable | null | undefinedvoidPathLikeFsBufferEncodingOption(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => voidvoidPathLikeTypesBufferEncodingOption(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => voidvoidPathLikeFsBufferEncodingOption(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => voidvoidPathLikeTypesBufferEncodingOption(err: ErrnoException | null, result?: Buffer<ArrayBufferLike>) => voidvoidAdvanced configuration for container locations from which modules should be resolved and loaded at runtime.
Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.
[index: {string}]string | string[] | RemotesConfig
Renames an inlined module's top-level declaration (and all its references) when
its name is already taken in the shared startup scope, recording the chosen name
in allUsedNames. Lets inlined modules be emitted without a per-entry/per-chunk
IIFE by resolving name collisions instead of isolating each module.
ChunkChunkGraphCodeGenerationResultsstringModuleGraphRuntimeTemplateHelper 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.
Advanced configuration for modules that should be shared in the share scope.
booleanstring | falsestringstring | falsestringstringbooleanbooleanstring | falseModules 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.
[index: {string}]string | SharedConfig
RawSourceMap | nullSourceValue() => Buffer() => Buffer<ArrayBufferLike>[](options?: ClearCacheOptions, visited?: WeakSet<Source>) => void(options?: MapOptions) => RawSourceMap | null() => number() => SourceValue(options?: MapOptions) => SourceAndMapRenames an inlined module's top-level declaration (and all its references) when
its name is already taken in the shared startup scope, recording the chosen name
in allUsedNames. Lets inlined modules be emitted without a per-entry/per-chunk
IIFE by resolving name collisions instead of isolating each module.
ChunkChunkGraphCodeGenerationResultsDependencyTemplatesbooleanbooleanModuleGraphbooleanRuntimeTemplatebooleanPathLikeFsStatOptionsFs & { bigint: true }(err: ErrnoException | null, result?: IBigIntStatsFs) => voidvoidPathLikeFsStatOptionsFs | undefined(err: ErrnoException | null, result?: IStatsFs | IBigIntStatsFs) => voidvoidReturns location of targetPath relative to rootPath.
booleanbooleanPathLikeFsIStatsFsPathLikeFsStatSyncOptions & { bigint: true; throwIfNoEntry?: true }IBigIntStatsFsPathLikeFsStatSyncOptions & { bigint?: false; throwIfNoEntry: false }PathLikeFsStatSyncOptions & { bigint: true; throwIfNoEntry: false }IBigIntStatsFs | undefinedPathLikeFsStatSyncOptions & { bigint: boolean; throwIfNoEntry?: true }IStatsFs | IBigIntStatsFsPathLikeTypesStatOptionsTypes & { bigint?: false } | undefined(err: ErrnoException | null, result?: IStatsTypes) => voidvoidPathLikeTypesStatOptionsTypes & { bigint: true }(err: ErrnoException | null, result?: IBigIntStatsTypes) => voidvoidPathLikeTypesStatOptionsTypes | undefined(err: ErrnoException | null, result?: IStatsTypes | IBigIntStatsTypes) => voidvoidRecord<string, any> | TopLevelSymbol | HarmonySettings | ImportSettings | CommonJsImportSettings | CompatibilitySettingsTagInfosymbolUse a Trusted Types policy to create urls for chunks.
"continue" | "stop"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'.stringCompiledAliasOptionsstring[]{ [index: string]: TsconfigPathsData }string[]Object.keys(allContexts)
— read-only; used on the
_selectPathsDataForContext
hot pathTsconfigPathsDatastring{ [index: string]: TsconfigPathsData }ChunkGraphNormalModuleRuntimeSpecRuntimeTemplateURLOne default-hint rule for URL-referenced assets emitted by this parser (JS new URL(...), CSS url(...), HTML <img src> / <link href> / <script src>). test / include / exclude match against the asset's request; omit all three to apply to every asset. Matching rules set the same fields a webpackPrefetch / webpackPreload / webpackAs / webpackType / webpackMedia / webpackFetchPriority magic comment would; explicit magic comments on the same URL still win.
stringas
attribute (script / style / font / image / …).string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)false | "auto" | "high" | "low"string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)stringmedia
attribute (e.g.
"(min-width: 800px)"
).boolean<link rel="prefetch">
for matching assets without an explicit hint comment.boolean<link rel="preload">
for matching assets without an explicit hint comment.string | RegExp | RuleSetLogicalConditions | RuleSetCondition[] | ((value: string) => boolean)stringtype
attribute (MIME).Returns location of targetPath relative to rootPath.
() => void() => Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>() => Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>() => WatcherInfo() => voidReturns location of targetPath relative to rootPath.
Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>Map<string, "ignore" | EntryTypesIndex | OnlySafeTimeEntry | ExistenceOnlyTimeEntryTypesIndex | null>string | ArrayBufferView<ArrayBufferLike>WriteFileOptions(err: ErrnoException | null) => voidvoid(item: T) => voidContextResolveData & ContextOptions & { resolveDependencies: (fs: InputFileSystem, options: ContextModuleOptions, callback: (err: null | Error, dependencies?: ContextElementDependency[]) => void) => void; resource: string | string[]; resourceFragment?: string; resourceQuery?: string }(fs: InputFileSystem, options: ContextModuleOptions, callback: (err: null | Error, dependencies?: ContextElementDependency[]) => void) => voidstringstringContextResolveData & ContextOptions"ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex""buffer" | { encoding: "buffer" }KnownBuildInfo & Record<string, any>KnownBuildMeta & Record<string, any>SimpleCallExpression | NewExpressionOmit<Map<string, any>, "get" | "set" | "has" | "delete"> & CodeGenMapOverloadsK extends "filename" | "assetInfo" | "share-init" | "topLevelDeclarations" | "freeNames" | "chunkInitFragments" | "url" | "fullContentHash" ? AllCodeGenerationSchemas[K] : anyMaybePromise<Configuration | MultiConfiguration>boolean | typeof CIRCULAR_CONNECTION | typeof TRANSITIVE_ONLY"eager" | "weak" | "lazy" | "lazy-once" | "sync" | "async-weak"KnownContext & Record<any, any>FSImplementation & { read: (args: any[]) => any }FSImplementation & { close?: (args: any[]) => any; write: (args: any[]) => any }Configuration | MultiConfiguration | ((env: Record<string, any>, argv: Record<string, any>) => MaybePromise<Configuration | MultiConfiguration>) | ((env: Record<string, any>, argv: Record<string, any>) => MaybePromise<Configuration | MultiConfiguration>)[] | Promise<Configuration | MultiConfiguration | ((env: Record<string, any>, argv: Record<string, any>) => MaybePromise<Configuration | MultiConfiguration>) | ((env: Record<string, any>, argv: Record<string, any>) => MaybePromise<Configuration | MultiConfiguration>)[]>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"undefined | null | "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsFsundefined | null | "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex" | ObjectEncodingOptionsTypesstring0 | 1 | 2 | 3"namespace" | "dynamic" | "default-only" | "default-with-named"T & FakeHookMarker{ color?: string; crossorigin?: "anonymous" | "use-credentials"; href: string; media?: string; sizes?: string; type?: string }
stringcolor
attribute (used by
rel="mask-icon"
)."anonymous" | "use-credentials"crossorigin
attribute.stringstringmedia
attribute (e.g.
"(prefers-color-scheme: dark)"
).stringsizes
attribute (e.g.
"180x180"
or
"any"
).stringtype
attribute; inferred from the file extension when omitted."prefetch" | "preload" | "modulepreload" | "preconnect" | "dns-prefetch"ImportExpressionImport & { phase?: "defer" | "source" }"defer" | "source"0 | 1 | 2InfrastructureLogging & { appendOnly: NonNullable<undefined | boolean>; colors: NonNullable<undefined | boolean>; debug: NonNullable<undefined | string | boolean | RegExp | FilterItemTypes[] | ((value: string) => boolean)>; level: NonNullable<undefined | "none" | "verbose" | "error" | "warn" | "info" | "log">; stream: NodeJS.WritableStream & { columns?: number; isTTY?: boolean; rows?: number } }NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | string | boolean | RegExp | FilterItemTypes[] | ((value: string) => boolean)>NonNullable<undefined | "none" | "verbose" | "error" | "warn" | "info" | "log">NodeJS.WritableStream & { columns?: number; isTTY?: boolean; rows?: number }null | stringnull | string | number | boolean | JsonObjectFs | JsonValueFs[]null | string | number | boolean | JsonObjectTypes | JsonValueTypes[]() => InputValue | Promise<InputValue> & Partial<{ options: InternalLazyOptions }>T | Promise<T>T & {}OptimizationNormalized & { avoidEntryIife: NonNullable<undefined | boolean>; checkWasmTypes: NonNullable<undefined | boolean>; chunkIds: NonNullable<undefined | false | "natural" | "named" | "deterministic" | "size" | "total-size">; concatenateModules: NonNullable<undefined | boolean | ConcatenateModulesOptions>; emitOnErrors: NonNullable<undefined | boolean>; flagIncludedChunks: NonNullable<undefined | boolean>; inlineExports: NonNullable<undefined | boolean>; innerGraph: NonNullable<undefined | boolean>; mangleExports: NonNullable<undefined | boolean | "deterministic" | "size">; mangleWasmImports: NonNullable<undefined | boolean>; mergeDuplicateChunks: NonNullable<undefined | boolean>; minimize: NonNullable<undefined | boolean>; minimizer: (((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance | "...")[]; moduleIds: NonNullable<undefined | false | "natural" | "named" | "deterministic" | "size" | "hashed">; nodeEnv: NonNullable<undefined | string | false>; portableRecords: NonNullable<undefined | boolean>; providedExports: NonNullable<undefined | boolean>; realContentHash: NonNullable<undefined | boolean>; removeAvailableModules: NonNullable<undefined | boolean>; removeEmptyChunks: NonNullable<undefined | boolean>; runtimeChunk: NonNullable<undefined | false | { name?: (entrypoint: { name: string }) => string }>; sideEffects: NonNullable<undefined | boolean | "flag">; splitChunks: NonNullable<undefined | false | OptimizationSplitChunksOptions>; usedExports: NonNullable<undefined | boolean | "global"> }NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | false | "natural" | "named" | "deterministic" | "size" | "total-size">NonNullable<undefined | boolean | ConcatenateModulesOptions>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean | "deterministic" | "size">NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>(((this: Compiler, compiler: Compiler) => void) | WebpackPluginInstance | "...")[]NonNullable<undefined | false | "natural" | "named" | "deterministic" | "size" | "hashed">NonNullable<undefined | string | false>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | false | { name?: (entrypoint: { name: string }) => string }>NonNullable<undefined | boolean | "flag">NonNullable<undefined | false | OptimizationSplitChunksOptions>NonNullable<undefined | boolean | "global">OutputNormalized & { assetModuleFilename: NonNullable<undefined | string | TemplatePathFn<PathDataModule>>; asyncChunks: NonNullable<undefined | boolean>; charset: NonNullable<undefined | boolean>; chunkFilename: NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>; chunkFormat: NonNullable<undefined | string | false>; chunkLoading: NonNullable<undefined | string | false>; chunkLoadingGlobal: string; chunkLoadTimeout: number; compareBeforeEmit: NonNullable<undefined | boolean>; crossOriginLoading: NonNullable<undefined | false | "anonymous" | "use-credentials">; cssChunkFilename: NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>; cssFilename: NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>; devtoolNamespace: string; environment: RecursiveNonNullable<Environment>; filename: NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>; globalObject: string; hashDigest: string; hashDigestLength: number; hashFunction: NonNullable<undefined | string | typeof Hash>; hotUpdateChunkFilename: string; hotUpdateGlobal: string; hotUpdateMainFilename: string; iife: NonNullable<undefined | boolean>; importFunctionName: string; importMetaName: string; module: NonNullable<undefined | boolean>; path: string; pathinfo: NonNullable<undefined | boolean | "verbose">; publicPath: NonNullable<undefined | string | TemplatePathFn<PathData>>; scriptType: NonNullable<undefined | false | "module" | "text/javascript">; sourceMapFilename: string; strictModuleErrorHandling: NonNullable<undefined | boolean>; strictModuleExceptionHandling: NonNullable<undefined | boolean>; strictModuleResolution: NonNullable<undefined | boolean>; uniqueName: string; wasmLoading: NonNullable<undefined | string | false>; webassemblyModuleFilename: string; workerChunkFilename: NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>; workerChunkLoading: NonNullable<undefined | string | false>; workerPublicPath: string; workerWasmLoading: NonNullable<undefined | string | false> }NonNullable<undefined | string | TemplatePathFn<PathDataModule>>NonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>NonNullable<undefined | string | false>NonNullable<undefined | string | false>stringnumberNonNullable<undefined | boolean>NonNullable<undefined | false | "anonymous" | "use-credentials">NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>stringRecursiveNonNullable<Environment>NonNullable<undefined | string | TemplatePathFn<PathDataChunk>>stringstringnumberNonNullable<undefined | string | typeof Hash>stringstringstringNonNullable<undefined | boolean>stringstringNonNullable<undefined | boolean>stringNonNullable<undefined | boolean | "verbose">NonNullable<undefined | string | TemplatePathFn<PathData>>NonNullable<undefined | false | "module" | "text/javascript">stringNonNullable<undefined | boolean>NonNullable<undefined | boolean>NonNullable<undefined | boolean>stringNonNullable<undefined | string | false>stringNonNullable<undefined | string | TemplatePathFn<PathDataChunk>>NonNullable<undefined | string | false>stringNonNullable<undefined | string | false>ParserStateBase & Record<string, any>string | falseKnownRecords & Record<string, KnownRecords[]> & Record<string, any>ServerImportHttp<typeof IncomingMessage> | ServerImportHttps<typeof IncomingMessage>SnapshotOptionsWebpackOptions & { buildDependencies: { hash?: boolean; timestamp?: boolean }; immutablePaths: (string | RegExp)[]; managedPaths: (string | RegExp)[]; module: { hash?: boolean; timestamp?: boolean }; resolve: { hash?: boolean; timestamp?: boolean }; resolveBuildDependencies: { hash?: boolean; timestamp?: boolean }; unmanagedPaths: (string | RegExp)[] }string | BufferT extends readonly [any, ...(infer R)] ? R : T0 | 1 | 2 | 3 | 4string | RegExp | ((warning: StatsError, warningString: string) => boolean)