new Compilation(compiler, params): Compilation<Compiler><Compilation>Creates an instance of Compilation.
<string><AsyncQueue><Map><string>
,
<AssetInfo>
><Entrypoint><boolean><AsyncQueue><Compilation><ChunkGraph><ChunkGroup><ChunkTemplate><CodeGenerationResults><object><Compiler><string><WeakMap><Map><DependencyTemplates><number><Map><string>
,
<EntryData>
><Map><string>
,
<Entrypoint>
><Error><AsyncQueue><string><EntryData><string><Readonly>
<
<object>
><InputFileSystem><MainTemplate><ModuleGraph><ModuleTemplates><string><Map><string>
,
<ChunkGroup>
><boolean><AsyncQueue><boolean><AsyncQueue><Records>
|
<null><ResolverFactory><RuntimeTemplate><number><Map><string>
,
<ValueCacheVersion>
><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): voidAssigns 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<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<CodeGenerationJob>createModuleAssets(): voidcreateModuleHashes(): voidcreateStatsFactory(options): StatsFactory<NormalizedStatsOptions><StatsFactory>Creates a stats factory.
createStatsOptions(optionsOrPreset?, context?): NormalizedStatsOptions<string>
|
<boolean>
|
<StatsOptions><NormalizedStatsOptions>Creates a stats options.
createStatsPrinter(options): StatsPrinter<NormalizedStatsOptions><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): void<FactorizeModuleOptions>
|
<object><object>Processes the provided module callback.
<FactorizeModuleOptions>
|
<object><object>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<string>Returns the asset or undefined when not found.
getAssetPath(filename, data): string<string>
|
<TemplatePathFn><T>
><string>Returns interpolated path.
getAssetPathWithInfo(filename, data): InterpolatedPathAndAssetInfo<string>
|
<TemplatePathFn><T>
><InterpolatedPathAndAssetInfo>Gets asset path with info.
getAssets(): Readonly<Readonly>
<
<Asset>
>[]getCache(name): CacheFacade<string><CacheFacade>Returns the cache facade instance.
getDependencyReferencedExports(dependency, runtime): string<Dependency><RuntimeSpec><string><ReferencedExport>
[]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?): string<string>
|
<TemplatePathFn><T>
><string>Returns interpolated path.
getPathWithInfo(filename, data?): InterpolatedPathAndAssetInfo<string>
|
<TemplatePathFn><T>
><InterpolatedPathAndAssetInfo>Gets path with info.
getRenderManifest(options): RenderManifestEntry<RenderManifestOptions><RenderManifestEntry>Gets render manifest.
getStats(): Stats<Stats>getWarnings(): Error<Error>handleModuleCreation(__namedParameters, callback): void<HandleModuleCreationOptions><object>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.