new CssLoadingRuntimeModule(runtimeRequirements): voidruntimeRequirements{ReadonlySet} - Returns: {CssLoadingRuntimeModule}
<AsyncDependenciesBlock[]><Chunk><ChunkGraph><Dependency[]><Compilation><string><number><Dependency[]><boolean><number><any><string><boolean><any><string><boolean><number><number><Module><any><string><string><string><boolean><string><boolean><Dependency[]><string><ResolveOptions><number><string><any><boolean><boolean><any><number><number><number><number>addBlock(block): void<AsyncDependenciesBlock>Adds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
addCacheDependencies(fileDependencies, contextDependencies, missingDependencies, buildDependencies): voidfileDependencies{LazySet} contextDependencies{LazySet} missingDependencies{LazySet} buildDependencies{LazySet} - Returns: {void}
addChunk(chunk): boolean<Chunk><boolean>addCodeGenerationDependency(codeGenerationDependency): void<Dependency>addDependency(dependency): void<Dependency>addError(error): void<WebpackError>addPresentationalDependency(presentationalDependency): void<Dependency>addWarning(warning): void<WebpackError>attach(compilation, chunk, chunkGraph?): voidbuild(options, compilation, resolver, fs, callback): voidoptions{WebpackOptionsNormalizedWithDefaults}compilation<Compilation>resolver{ResolverWithOptions}fs<InputFileSystem>callback{object}- Returns: {void}
chunkCondition(chunk, compilation): boolean<Chunk><Compilation><boolean>cleanupForCache(): voidAssuming this module is in the cache. Remove internal references to allow freeing some memory.
clearDependenciesAndBlocks(): voidRemoves all dependencies and blocks
clearWarningsAndErrors(): voidremoves all warnings and errors
codeGeneration(context): voidcontext{CodeGenerationContext}- Returns: {CodeGenerationResult}
deserialize(__namedParameters): void<ObjectDeserializerContext>generate(): string<string>getChunks(): Chunk[]<Chunk[]>getConcatenationBailoutReason(context): voidcontext{ConcatenationBailoutReasonContext}- Returns:
<string>
getErrors(): Iterable<WebpackError, any, any>getExportsType(moduleGraph, strict?): ExportsType<ModuleGraph><boolean>getGeneratedCode(): string<string>getNumberOfChunks(): number<number>getNumberOfErrors(): number<number>getNumberOfWarnings(): number<number>getRootBlock(): DependenciesBlockgetSideEffectsConnectionState(moduleGraph): ConnectionState<ModuleGraph>getSourceBasicTypes(): ReadonlySet<string>Basic source types are high-level categories like javascript, css, webassembly, etc. We only have built-in knowledge about the javascript basic type here; other basic types may be added or changed over time by generators and do not need to be handled or detected here. Some modules, e.g. RemoteModule, may return non-basic source types like "remote" and "share-init" from getSourceTypes(), but their generated output is still JavaScript, i.e. their basic type is JS.
getSourceTypes(): ReadonlySet<string>getUnsafeCacheData(): UnsafeCacheDataModule should be unsafe cached. Get data that's needed for that. This data will be passed to restoreFromUnsafeCache later.
getWarnings(): Iterable<WebpackError, any, any>hasChunkCondition(): boolean<boolean>hasReasonForChunk(chunk, moduleGraph, chunkGraph): boolean<boolean>hasReasons(moduleGraph, runtime): boolean<ModuleGraph><boolean>identifier(): string<string>invalidateBuild(): voidisAccessibleInChunk(chunkGraph, chunk, ignoreChunk?): boolean<boolean>isAccessibleInChunkGroup(chunkGraph, chunkGroup, ignoreChunk?): boolean<boolean>isEntryModule(): boolean<boolean>isInChunk(chunk): boolean<Chunk><boolean>isOptional(moduleGraph): boolean<ModuleGraph><boolean>isProvided(exportName): boolean<string><boolean>libIdent(options): voidoptions{LibIdentOptions}- Returns:
<string>
nameForCondition(): string<string>needBuild(context, callback): voidcontext{NeedBuildContext}callback{object}- Returns: {void}
needRebuild(fileTimestamps, contextTimestamps): voidfileTimestamps{Map<string, number>}contextTimestamps{Map<string, number>}- Returns:
<boolean>
Use needBuild instead
originalSource(): SourcereadableIdentifier(requestShortener): voidrequestShortener{RequestShortener}- Returns:
<string>
removeChunk(chunk): void<Chunk>removeDependency(dependency): void<Dependency>serialize(__namedParameters): void<ObjectSerializerContext>shouldIsolate(): boolean<boolean>size
size(type?): number<string><number>source(dependencyTemplates, runtimeTemplate, type?): voiddependencyTemplates{DependencyTemplates}runtimeTemplate{RuntimeTemplate}type<string>- Returns: {Source}
Use codeGeneration() instead
updateCacheModule(module): void<Module>Assuming this module is in the cache. Update the (cached) module with the fresh module from the factory. Usually updates internal references and properties.
updateHash(hash, context): voidhash{Hash}context{UpdateHashContextDependency}- Returns: {void}
<Compilation><Module>In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
new FetchCompileAsyncWasmPlugin(): FetchCompileAsyncWasmPluginapply(compiler): void<Compiler>Apply the plugin
new FetchCompileWasmPlugin(options?): voidoptions{FetchCompileWasmPluginOptions}- Returns: {FetchCompileWasmPlugin}
options{FetchCompileWasmPluginOptions}
apply(compiler): void<Compiler>Apply the plugin
new JsonpChunkLoadingRuntimeModule(runtimeRequirements): voidruntimeRequirements{ReadonlySet} - Returns: {JsonpChunkLoadingRuntimeModule}
<AsyncDependenciesBlock[]><Chunk><ChunkGraph><Dependency[]><Compilation><string><number><Dependency[]><boolean><number><any><string><boolean><any><string><boolean><number><number><Module><any><string><string><string><boolean><string><boolean><Dependency[]><string><ResolveOptions><number><string><any><boolean><boolean><any><number><number><number><number>addBlock(block): void<AsyncDependenciesBlock>Adds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
addCacheDependencies(fileDependencies, contextDependencies, missingDependencies, buildDependencies): voidfileDependencies{LazySet} contextDependencies{LazySet} missingDependencies{LazySet} buildDependencies{LazySet} - Returns: {void}
addChunk(chunk): boolean<Chunk><boolean>addCodeGenerationDependency(codeGenerationDependency): void<Dependency>addDependency(dependency): void<Dependency>addError(error): void<WebpackError>addPresentationalDependency(presentationalDependency): void<Dependency>addWarning(warning): void<WebpackError>attach(compilation, chunk, chunkGraph?): voidbuild(options, compilation, resolver, fs, callback): voidoptions{WebpackOptionsNormalizedWithDefaults}compilation<Compilation>resolver{ResolverWithOptions}fs<InputFileSystem>callback{object}- Returns: {void}
chunkCondition(chunk, compilation): boolean<Chunk><Compilation><boolean>cleanupForCache(): voidAssuming this module is in the cache. Remove internal references to allow freeing some memory.
clearDependenciesAndBlocks(): voidRemoves all dependencies and blocks
clearWarningsAndErrors(): voidremoves all warnings and errors
codeGeneration(context): voidcontext{CodeGenerationContext}- Returns: {CodeGenerationResult}
deserialize(__namedParameters): void<ObjectDeserializerContext>generate(): string<string>getChunks(): Chunk[]<Chunk[]>getConcatenationBailoutReason(context): voidcontext{ConcatenationBailoutReasonContext}- Returns:
<string>
getErrors(): Iterable<WebpackError, any, any>getExportsType(moduleGraph, strict?): ExportsType<ModuleGraph><boolean>getGeneratedCode(): string<string>getNumberOfChunks(): number<number>getNumberOfErrors(): number<number>getNumberOfWarnings(): number<number>getRootBlock(): DependenciesBlockgetSideEffectsConnectionState(moduleGraph): ConnectionState<ModuleGraph>getSourceBasicTypes(): ReadonlySet<string>Basic source types are high-level categories like javascript, css, webassembly, etc. We only have built-in knowledge about the javascript basic type here; other basic types may be added or changed over time by generators and do not need to be handled or detected here. Some modules, e.g. RemoteModule, may return non-basic source types like "remote" and "share-init" from getSourceTypes(), but their generated output is still JavaScript, i.e. their basic type is JS.
getSourceTypes(): ReadonlySet<string>getUnsafeCacheData(): UnsafeCacheDataModule should be unsafe cached. Get data that's needed for that. This data will be passed to restoreFromUnsafeCache later.
getWarnings(): Iterable<WebpackError, any, any>hasChunkCondition(): boolean<boolean>hasReasonForChunk(chunk, moduleGraph, chunkGraph): boolean<boolean>hasReasons(moduleGraph, runtime): boolean<ModuleGraph><boolean>identifier(): string<string>invalidateBuild(): voidisAccessibleInChunk(chunkGraph, chunk, ignoreChunk?): boolean<boolean>isAccessibleInChunkGroup(chunkGraph, chunkGroup, ignoreChunk?): boolean<boolean>isEntryModule(): boolean<boolean>isInChunk(chunk): boolean<Chunk><boolean>isOptional(moduleGraph): boolean<ModuleGraph><boolean>isProvided(exportName): boolean<string><boolean>libIdent(options): voidoptions{LibIdentOptions}- Returns:
<string>
nameForCondition(): string<string>needBuild(context, callback): voidcontext{NeedBuildContext}callback{object}- Returns: {void}
needRebuild(fileTimestamps, contextTimestamps): voidfileTimestamps{Map<string, number>}contextTimestamps{Map<string, number>}- Returns:
<boolean>
Use needBuild instead
originalSource(): SourcereadableIdentifier(requestShortener): voidrequestShortener{RequestShortener}- Returns:
<string>
removeChunk(chunk): void<Chunk>removeDependency(dependency): void<Dependency>serialize(__namedParameters): void<ObjectSerializerContext>shouldIsolate(): boolean<boolean>size
size(type?): number<string><number>source(dependencyTemplates, runtimeTemplate, type?): voiddependencyTemplates{DependencyTemplates}runtimeTemplate{RuntimeTemplate}type<string>- Returns: {Source}
Use codeGeneration() instead
updateCacheModule(module): void<Module>Assuming this module is in the cache. Update the (cached) module with the fresh module from the factory. Usually updates internal references and properties.
updateHash(hash, context): voidhash{Hash}context{UpdateHashContextDependency}- Returns: {void}
<Compilation><Module>In webpack 6, call getSourceBasicTypes() directly on the module instance instead of using this static method.
new JsonpTemplatePlugin(): JsonpTemplatePluginapply(compiler): void<Compiler>Apply the plugin
<Compilation>use JsonpChunkLoadingRuntimeModule.getCompilationHooks instead