| | |
| | | `); |
| | | |
| | | /** |
| | | * Defines the eval dev tool module plugin options type used by this module. |
| | | * @typedef {object} EvalDevToolModulePluginOptions |
| | | * @property {DevtoolNamespace=} namespace namespace |
| | | * @property {string=} sourceUrlComment source url comment |
| | |
| | | |
| | | class EvalDevToolModulePlugin { |
| | | /** |
| | | * Creates an instance of EvalDevToolModulePlugin. |
| | | * @param {EvalDevToolModulePluginOptions=} options options |
| | | */ |
| | | constructor(options = {}) { |
| | | /** @type {DevtoolNamespace} */ |
| | | this.namespace = options.namespace || ""; |
| | | /** @type {string} */ |
| | | this.sourceUrlComment = options.sourceUrlComment || "\n//# sourceURL=[url]"; |
| | | /** @type {DevtoolModuleFilenameTemplate} */ |
| | | this.moduleFilenameTemplate = |
| | | options.moduleFilenameTemplate || |
| | | "webpack://[namespace]/[resourcePath]?[loaders]"; |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |