These types are not exported by webpack, but they are available to TypeScript consumers.
Advanced options for module concatenation.
booleanParser options for css/auto and css/module modules.
boolean@keyframes
."stylesheet" | "block-contents"style
attribute).boolean@container
names.booleanboolean@custom-media
at-rules (file-local build-time substitution).boolean@custom-selector
at-rules (file-local build-time expansion to
:is(...)
).boolean"link" | "text" | "css-style-sheet" | "style"boolean<link rel="preload" as="font">
for the primary
src
URL of each
@font-face
reachable from an HTML entry's initial CSS. Only the first URL per
@font-face
is preloaded (preloading every format would double-download). Off by default;
parser.css.urlHints
rules and per-URL magic comments still override the seeded defaults. Set
output.crossOriginLoading
so the preload matches the font's CORS fetch.boolean@function
names.booleanboolean@import
at-rules handling.booleanbooleanbooleanurl()
/
image-set()
/
src()
/
image()
functions handling.UrlHintRule[]new URL(...)
, CSS
url(...)
, HTML
<img src>
/
<link href>
/
<script src>
).Generator options for css/module modules.
boolean"camel-case" | "camel-case-only" | "dashes" | "dashes-only" | "as-is" | ((name: string) => string | string[])boolean"link" | "text" | "css-style-sheet" | "style"stringnumberstringstring | TemplatePathFn<PathDataModule>Parser options for css/global modules.
boolean@keyframes
."stylesheet" | "block-contents"style
attribute).boolean@container
names.booleanboolean@custom-media
at-rules (file-local build-time substitution).boolean@custom-selector
at-rules (file-local build-time expansion to
:is(...)
).boolean"link" | "text" | "css-style-sheet" | "style"boolean<link rel="preload" as="font">
for the primary
src
URL of each
@font-face
reachable from an HTML entry's initial CSS. Only the first URL per
@font-face
is preloaded (preloading every format would double-download). Off by default;
parser.css.urlHints
rules and per-URL magic comments still override the seeded defaults. Set
output.crossOriginLoading
so the preload matches the font's CORS fetch.boolean@function
names.booleanboolean@import
at-rules handling.booleanbooleanurl()
/
image-set()
/
src()
/
image()
functions handling.UrlHintRule[]new URL(...)
, CSS
url(...)
, HTML
<img src>
/
<link href>
/
<script src>
).Specify options for each generator.
AssetGeneratorOptionsEmptyGeneratorOptionsAssetInlineGeneratorOptionsAssetResourceGeneratorOptionsEmptyGeneratorOptionsCssModuleGeneratorOptionsCssModuleGeneratorOptionsCssModuleGeneratorOptionsHtmlGeneratorOptionsEmptyGeneratorOptionsEmptyGeneratorOptionsEmptyGeneratorOptionsEmptyGeneratorOptionsJsonGeneratorOptionsSpecify options for each generator.
Snapshot | nullbooleanoutput.module
)string../
per
<base href>
path segment, prepended to the auto-public-path undo path so a relative base doesn't misdirect bundled URLsRecord<string, HtmlEntryInfo[]>JsonDataReturns array of values.
string[]booleanbooleanbooleanbooleanChunkId[]booleanbooleannumber | nullnumberbooleannumberstringnumbernumberstring | nullstring | nullStatsModuleIssuer[] | nullstring | nullStatsModule[]stringstringstring | nullstring[]string[]booleanbooleannumbernumberStatsProfilestring[] | nullStatsModuleReason[]numberstring | Buffer<ArrayBufferLike>stringnumberReturns array of values.
Returns array of values.
Returns array of values.
stringModuleFactoryCreateDataContextInfoDependency[]ResolveOptionsstringstringstringstringstringstringstringstringstringstringstringOptions affecting the normal modules (NormalModuleFactory).
(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]booleanbooleanstringGeneratorOptionsByModuleTypestring | RegExp | ((content: string) => boolean) | (string | RegExp | ((content: string) => boolean))[]ParserOptionsByModuleType(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]booleanbooleanbooleanbooleanstringbooleanbooleanRegExpOptions affecting the normal modules (NormalModuleFactory).
(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]GeneratorOptionsByModuleTypestring | RegExp | ((content: string) => boolean) | (string | RegExp | ((content: string) => boolean))[]ParserOptionsByModuleType(false | "" | 0 | "..." | RuleSetRule | null | undefined)[]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.
ChunkChunkGraphInitFragment<ChunkRenderContextJavascriptModulesPlugin>[]CodeGenerationResultsDependencyTemplatesbooleanbooleanfactory
is set to falseModuleGraphbooleanRuntimeTemplatebooleanbooleanstringResolveOptionsbooleanstringSyncHook<[LoaderItem[], NormalModule, AnyLoaderContext]>SyncHook<[NormalModule]>SyncHook<[NormalModule]>SyncHook<[AnyLoaderContext, NormalModule]>AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>SyncWaterfallHook<[[string | Buffer<ArrayBufferLike>, string | RawSourceMap | undefined, PreparsedAst | undefined], NormalModule], [string | Buffer<ArrayBufferLike>, string | RawSourceMap | undefined, PreparsedAst | undefined]>HookMap<AsyncSeriesBailHook<[AnyLoaderContext], string | Buffer<ArrayBufferLike> | null, UnsetAdditionalOptions>>HookMap<FakeHook<AsyncSeriesBailHook<[string, NormalModule], string | Buffer<ArrayBufferLike> | null, UnsetAdditionalOptions>>>stringboolean(Record<"javascript/auto", JavascriptGenerator> & Record<"javascript/dynamic", JavascriptGenerator> & Record<"javascript/esm", JavascriptGenerator> & Record<"json", JsonGenerator> & Record<"asset", AssetGenerator> & Record<"asset/inline", AssetGenerator> & Record<"asset/resource", AssetGenerator> & Record<"asset/source", AssetSourceGenerator> & Record<"asset/bytes", AssetBytesGenerator> & Record<"webassembly/async", Generator> & Record<"webassembly/sync", Generator> & Record<"css", CssGenerator> & Record<"css/auto", CssGenerator> & Record<"css/module", CssGenerator> & Record<"css/global", CssGenerator> & Record<"html", HtmlGenerator> & Record<string, Generator>)[T](Record<"javascript/auto", EmptyGeneratorOptions> & Record<"javascript/dynamic", EmptyGeneratorOptions> & Record<"javascript/esm", EmptyGeneratorOptions> & Record<"json", JsonGeneratorOptions> & Record<"asset", AssetGeneratorOptions> & Record<"asset/inline", AssetGeneratorOptions> & Record<"asset/resource", AssetGeneratorOptions> & Record<"asset/source", EmptyGeneratorOptions> & Record<"asset/bytes", EmptyGeneratorOptions> & Record<"webassembly/async", EmptyGeneratorOptions> & Record<"webassembly/sync", EmptyGeneratorOptions> & Record<"css", CssGeneratorOptions> & Record<"css/auto", CssModuleGeneratorOptions> & Record<"css/module", CssModuleGeneratorOptions> & Record<"css/global", CssModuleGeneratorOptions> & Record<"html", HtmlGeneratorOptions> & Record<string, GeneratorOptions>)[T]stringLoaderItem[]string(Record<"javascript/auto", JavascriptParser> & Record<"javascript/dynamic", JavascriptParser> & Record<"javascript/esm", JavascriptParser> & Record<"json", JsonParser> & Record<"asset", AssetParser> & Record<"asset/inline", AssetParser> & Record<"asset/resource", AssetParser> & Record<"asset/source", AssetSourceParser> & Record<"asset/bytes", AssetBytesParser> & Record<"webassembly/async", AsyncWebAssemblyParser> & Record<"webassembly/sync", WebAssemblyParser> & Record<"css", CssParser> & Record<"css/auto", CssParser> & Record<"css/module", CssParser> & Record<"css/global", CssParser> & Record<"html", HtmlParser> & Record<string, Parser>)[T](Record<"javascript/auto", JavascriptParserOptions> & Record<"javascript/dynamic", JavascriptParserOptions> & Record<"javascript/esm", JavascriptParserOptions> & Record<"json", JsonParserOptions> & Record<"asset", AssetParserOptions> & Record<"asset/inline", EmptyParserOptions> & Record<"asset/resource", EmptyParserOptions> & Record<"asset/source", EmptyParserOptions> & Record<"asset/bytes", EmptyParserOptions> & Record<"webassembly/async", EmptyParserOptions> & Record<"webassembly/sync", EmptyParserOptions> & Record<"css", CssParserOptions> & Record<"css/auto", CssModuleParserOptions> & Record<"css/module", CssModuleParserOptions> & Record<"css/global", CssModuleParserOptions> & Record<"html", EmptyParserOptions> & Record<string, ParserOptions>)[T]stringstringResolveOptionsstringResourceSchemeData & Partial<ResolveRequest>TstringSpecify options for each parser.
AssetParserOptionsEmptyParserOptionsEmptyParserOptionsEmptyParserOptionsEmptyParserOptionsCssParserOptionsCssAutoOrModuleParserOptionsCssModuleParserOptionsCssAutoOrModuleParserOptionsHtmlParserOptionsJavascriptParserOptionsJavascriptParserOptionsJavascriptParserOptionsJavascriptParserOptionsJsonParserOptionsSpecify options for each parser.
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.
ChunkChunkGraphCodeGenerationResultsDependencyTemplatesModuleGraphRuntimeTemplatebooleanKnownBuildInfo & Record<string, any> & KnownConcatenatedModuleBuildInfoKnownBuildInfo & Record<string, any> & KnownContextModuleBuildInfoKnownBuildInfo & Record<string, any> & KnownNormalModuleBuildInfo & KnownCssModuleBuildInfoKnownBuildMeta & Record<string, any> & KnownCssModuleBuildMetastring | ((context: ModuleFilenameTemplateContext) => string)KnownBuildInfo & Record<string, any> & KnownNormalModuleBuildInfo & KnownHtmlModuleBuildInfoKnownBuildInfo & Record<string, any> & KnownNormalModuleBuildInfo & KnownJavascriptModuleBuildInfoKnownBuildMeta & Record<string, any> & KnownJavascriptModuleBuildMetaKnownBuildInfo & Record<string, any> & KnownNormalModuleBuildInfo & KnownJsonModuleBuildInfostring | RegExp | ((name: string, module: StatsModule, type: "module" | "chunk" | "root-of-chunk" | "nested") => boolean)KnownBuildInfo & Record<string, any> & KnownNormalModuleBuildInfoPathData & { chunkGraph: ChunkGraph; module: Module | ModulePathData }ChunkGraphModule | ModulePathDataKnownBuildMeta & Record<string, any> & KnownSyncWasmModuleBuildMeta