| | |
| | | /** @typedef {import("../Module")} Module */ |
| | | |
| | | /** |
| | | * Defines the deterministic module ids plugin options type used by this module. |
| | | * @typedef {object} DeterministicModuleIdsPluginOptions |
| | | * @property {string=} context context relative to which module identifiers are computed |
| | | * @property {((module: Module) => boolean)=} test selector function for modules |
| | |
| | | |
| | | class DeterministicModuleIdsPlugin { |
| | | /** |
| | | * Creates an instance of DeterministicModuleIdsPlugin. |
| | | * @param {DeterministicModuleIdsPluginOptions=} options options |
| | | */ |
| | | constructor(options = {}) { |
| | | /** @type {DeterministicModuleIdsPluginOptions} */ |
| | | this.options = options; |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |