12345678910111213141516171819202122 |
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- "use strict";
- const EvalDevToolModuleTemplatePlugin = require("./EvalDevToolModuleTemplatePlugin");
- class EvalDevToolModulePlugin {
- constructor(sourceUrlComment, moduleFilenameTemplate) {
- this.sourceUrlComment = sourceUrlComment;
- this.moduleFilenameTemplate = moduleFilenameTemplate;
- }
- apply(compiler) {
- compiler.plugin("compilation", (compilation) => {
- compilation.moduleTemplate.apply(new EvalDevToolModuleTemplatePlugin(this.sourceUrlComment, this.moduleFilenameTemplate));
- });
- }
- }
- module.exports = EvalDevToolModulePlugin;
|