* 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 })
| 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 | |
| 100 | module.exports = JsonpLibraryPlugin; |