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

Method chunkHash

lib/library/JsonpLibraryPlugin.js:94–97  ·  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, { options, compilation })

Source from the content-addressed store, hash-verified

92 * @returns {void}
93 */
94 chunkHash(chunk, hash, chunkHashContext, { options, compilation }) {
95 hash.update("JsonpLibraryPlugin");
96 hash.update(compilation.getPath(options.name, { chunk }));
97 }
98}
99
100module.exports = JsonpLibraryPlugin;

Callers

nothing calls this directly

Calls 2

getPathMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected