| | |
| | | /** @typedef {import("../Compiler")} Compiler */ |
| | | |
| | | /** |
| | | * Defines the deterministic chunk ids plugin options type used by this module. |
| | | * @typedef {object} DeterministicChunkIdsPluginOptions |
| | | * @property {string=} context context for ids |
| | | * @property {number=} maxLength maximum length of ids |
| | |
| | | |
| | | class DeterministicChunkIdsPlugin { |
| | | /** |
| | | * Creates an instance of DeterministicChunkIdsPlugin. |
| | | * @param {DeterministicChunkIdsPluginOptions=} options options |
| | | */ |
| | | constructor(options = {}) { |
| | | /** @type {DeterministicChunkIdsPluginOptions} */ |
| | | this.options = options; |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |