MCPcopy
hub / github.com/webpack/webpack / chunkHash

Method chunkHash

lib/library/AbstractLibraryPlugin.js:343–349  ·  view source on GitHub ↗

* Processes the provided chunk. * @param {Chunk} chunk the chunk * @param {Hash} hash hash * @param {ChunkHashContext} chunkHashContext chunk hash context * @param {LibraryContext<T>} libraryContext context * @returns {void}

(chunk, hash, chunkHashContext, libraryContext)

Source from the content-addressed store, hash-verified

341 * @returns {void}
342 */
343 chunkHash(chunk, hash, chunkHashContext, libraryContext) {
344 const options = this._parseOptionsCached(
345 libraryContext.compilation.outputOptions.library
346 );
347 hash.update(this._pluginName);
348 hash.update(JSON.stringify(options));
349 }
350}
351
352AbstractLibraryPlugin.COMMON_LIBRARY_NAME_MESSAGE = COMMON_LIBRARY_NAME_MESSAGE;

Callers 1

applyMethod · 0.95

Calls 2

_parseOptionsCachedMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected