A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webpack.js.org/api/compilation-object/ below:

Compilation Object | webpack

The Compilation object has many methods and hooks available. On this page, we will list the available methods and properties.

compilation object methods getStats

function

Returns Stats object for the current compilation.

addModule

function (module, callback)

Adds a module to the current compilation.

Parameters:

getModule

function (module)

Fetches a module from a compilation by its identifier.

Parameters:

findModule

function (module)

Attempts to search for a module by its identifier.

Parameters:

buildModule

function (module, optional, origin, dependencies)

Builds the given module.

Parameters:

processModuleDependencies

function (module, callback)

Process the given module dependencies.

Parameters:

addEntry

function (context, entry, name, callback)

Adds an entry to the compilation.

Parameters:

rebuildModule

function (module, thisCallback)

Triggers a re-build of the module.

Parameters:

finish

function (callback)

Finishes compilation and invokes the given callback.

Parameters:

seal

function (callback)

Seals the compilation.

Parameters:

unseal

function

Unseals the compilation.

Parameters:

reportDependencyErrorsAndWarnings

function (module, blocks)

Adds errors and warnings of the given module to the compilation errors and warnings.

Parameters:

addChunkInGroup

function (groupOptions, module, loc, request)

Adds module to an existing chunk group or creates a new one. Returns a chunkGroup.

Parameters:

addChunk

function (name)

Creates and adds a new chunk to the compilation.chunks. Returns that chunk.

Parameters:

assignDepth

function (module)

Assigns depth to the given module and its dependency blocks recursively.

Parameters:

getDependencyReference

function (module, dependency)

Returns the reference to the dependency from a given module.

Parameters:

processDependenciesBlocksForChunkGroups

function (inputChunkGroups)

Creates the Chunk graph from the Module graph. The process is done in two phases. Phase one: traverse the module graph and build a basic chunks graph in chunkDependencies. Phase two: traverse every possible way through the basic chunk graph and track the available modules. While traversing, processDependenciesBlocksForChunkGroups connects chunks with each other and Blocks with Chunks. It stops traversing when all modules for a chunk are already available and it doesn't connect unneeded chunks.

Parameters:

removeReasonsOfDependencyBlock

function (module, block)

Removes relation of the module to the dependency block.

Parameters:

patchChunksAfterReasonRemoval

function (module, chunk)

Patches ties of module and chunk after removing dependency reasons. Called automatically by removeReasonsOfDependencyBlock.

Parameters:

removeChunkFromDependencies

function (block, chunk)

Removes given chunk from a dependencies block module and chunks after removing dependency reasons. Called automatically by removeReasonsOfDependencyBlock.

Parameters:

sortItemsWithChunkIds

function

summarizeDependencies

function

createHash

function

createModuleAssets

function

createChunkAssets

function

getPath

function (filename, data)

Returns the interpolated path.

Parameters:

getPathWithInfo

function (filename, data)

Returns interpolated path and asset information.

Parameters:

createChildCompiler

function (name, outputOptions, plugins)

Allows running another instance of webpack inside of webpack. However, as a child with different settings and configurations applied. It copies all hooks and plugins from the parent (or top-level compiler) and creates a child Compiler instance. Returns the created Compiler.

Parameters:

checkConstraints

function

emitAsset

function (file, source, assetInfo = {})

Parameters:

updateAsset

function (file, newSourceOrFunction, assetInfoUpdateOrFunction)

Parameters:

deleteAsset

function (file)

Parameters:

getAssets

function

Returns array of all assets under the current compilation.

getAsset

function (name)

Parameters:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4