new Compilation(compiler, params): Compilation<Compiler><Compilation>Creates an instance of Compilation.
<string[]><Entrypoint[]><boolean><Compilation[]><ChunkGraph><ChunkGroup[]><CodeGenerationResults><object><Compiler><string><number><Error[]><string><string><InputFileSystem><ModuleGraph><string><boolean><boolean><null><number><Error[]><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number>addAsyncEntrypoint(options, module, loc, request): Entrypoint<Entrypoint>Adds the provided async entrypoint to this chunk group.
addChunk(name?): Chunk<Chunk>This method first looks to see if a name is provided for a new chunk, and first looks to see if any named chunks already exist and reuse that chunk instead.
addChunkInGroup(groupOptions, module?, loc?, request?): ChunkGroup<ChunkGroup>If module is passed, loc and request must also be passed.
addEntry(context, entry, optionsOrName, callback): voidAdds the provided string to the compilation.
addInclude(context, dependency, options, callback): voidAdds the provided string to the compilation.
addModule(module, callback): voidAdds the provided module to the compilation.
addModuleChain(context, dependency, callback): voidAdds the provided string to the compilation.
addModuleTree(__namedParameters, callback): voidAdds the provided object to the compilation.
addRuntimeModule(chunk, module, chunkGraph?): voidAdds runtime module.
assignDepth(module): void<Module>Processes the provided module.
assignDepths(modules): voidmodules{Module[]|Set} - Returns: {void}
Assigns depth values to the provided modules.
assignRuntimeIds(): voidbuildModule(module, callback): voidSchedules a build of the module object
checkConstraints(): voidclearAssets(): voidcodeGeneration(callback): void<object>Generates code and runtime requirements for this module.
createChildCompiler(name, outputOptions?, plugins?): Compiler<string><object>
|
<WebpackPluginInstance>
|
<null>
|
<undefined[]><Compiler>This function allows you to run another instance of webpack inside of webpack however as a child with different settings and configurations (if desired) applied. It copies all hooks, plugins from parent (or top level compiler) and creates a child Compilation
createChunkAssets(callback): void<object>Creates a chunk assets.
createHash(): CodeGenerationJob[]createModuleAssets(): voidcreateModuleHashes(): voidcreateStatsFactory(options): voidoptions{NormalizedStatsOptions}- Returns: {StatsFactory}
Creates a stats factory.
createStatsOptions(optionsOrPreset?, context?): NormalizedStatsOptions<string>
|
<boolean>
|
<StatsOptions>Creates a stats options.
createStatsPrinter(options): voidoptions{NormalizedStatsOptions}- Returns: {StatsPrinter}
Creates a stats printer.
deleteAsset(file): void<string>Processes the provided file.
emitAsset(file, source, assetInfo?): voidProcesses the provided file.
executeModule(module, options, callback): voidProcesses the provided module.
factorizeModule(options, callback): voidProcesses the provided module callback.
Processes the provided module factory result callback.
findModule(identifier): Module | undefined<string><Module>
|
<undefined>Attempts to search for a module by its identifier
finish(callback): void<object>Processes the provided callback.
getAsset(name): Readonly<Asset> | undefined<string>Returns the asset or undefined when not found.
getAssetPath(filename, data): voidfilename{string|TemplatePathFn} data{T}- Returns:
<string>
Returns interpolated path.
getAssetPathWithInfo(filename, data): voidfilename{string|TemplatePathFn} data{T}- Returns: {InterpolatedPathAndAssetInfo}
Gets asset path with info.
getAssets(): Readonly<Asset>[]getCache(name): CacheFacade<string>Returns the cache facade instance.
getDependencyReferencedExports(dependency, runtime): string[]<Dependency><string[]>Gets dependency referenced exports.
getErrors(): Error[]<Error[]>getLogger(name): WebpackLoggerReturns a logger with that name.
getModule(module): Module<Module><Module>Fetches a module from a compilation by its identifier
getPath(filename, data?): voidfilename{string|TemplatePathFn} data{T}- Returns:
<string>
Returns interpolated path.
getPathWithInfo(filename, data?): voidfilename{string|TemplatePathFn} data{T}- Returns: {InterpolatedPathAndAssetInfo}
Gets path with info.
getRenderManifest(options): RenderManifestEntry[]<RenderManifestOptions><RenderManifestEntry[]>Gets render manifest.
getStats(): Stats<Stats>getWarnings(): Error[]<Error[]>handleModuleCreation(__namedParameters, callback): void__namedParameters{HandleModuleCreationOptions}callback<object>- Returns: {void}
Handle module creation.
patchChunksAfterReasonRemoval(module, chunk): voidPatch chunks after reason removal.
processModuleDependencies(module, callback): voidProcess module dependencies.
processModuleDependenciesNonRecursive(module): void<Module>Process module dependencies non recursive.
processRuntimeRequirements(__namedParameters?): void<object>Process runtime requirements.
rebuildModule(module, callback): voidProcesses the provided module.
removeChunkFromDependencies(block, chunk): voidblock{DependenciesBlock}chunk<Chunk>- Returns: {void}
Removes chunk from dependencies.
removeReasonsOfDependencyBlock(module, block): void<Module>Removes reasons of dependency block.
renameAsset(file, newFile): voidProcesses the provided file.
reportDependencyErrorsAndWarnings(module, blocks): boolean<Module><boolean>Report dependency errors and warnings.
seal
seal(callback): void<object>Processes the provided callback.
sortItemsWithChunkIds(): voidsummarizeDependencies(): voidunseal(): voidupdateAsset(file, newSourceOrFunction, assetInfoUpdateOrFunction?): void<string><AssetInfo>
|
<object>Updates asset using the provided file.