| | |
| | | /** @typedef {import("../Compiler")} Compiler */ |
| | | |
| | | /** |
| | | * Defines the named module ids plugin options type used by this module. |
| | | * @typedef {object} NamedModuleIdsPluginOptions |
| | | * @property {string=} context context |
| | | */ |
| | |
| | | |
| | | class NamedModuleIdsPlugin { |
| | | /** |
| | | * Creates an instance of NamedModuleIdsPlugin. |
| | | * @param {NamedModuleIdsPluginOptions=} options options |
| | | */ |
| | | constructor(options = {}) { |
| | | /** @type {NamedModuleIdsPluginOptions} */ |
| | | this.options = options; |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |