Skip to content

Commit 5bf94e3

Browse files
committed
EvalSourceMapDevToolPlugin accepts one parameter
1 parent 0ab5a3e commit 5bf94e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/WebpackOptionsApply.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
173173
else if(options.devtool === "@evalsourcemap" ||
174174
options.devtool === "@eval-sourcemap" ||
175175
options.devtool === "@eval-source-map")
176-
compiler.apply(new EvalSourceMapDevToolPlugin(null, "\n/*\n//@ sourceMappingURL=[url]\n*/"));
176+
compiler.apply(new EvalSourceMapDevToolPlugin("\n/*\n//@ sourceMappingURL=[url]\n*/"));
177177
else if(options.devtool === "#evalsourcemap" ||
178178
options.devtool === "#eval-sourcemap" ||
179179
options.devtool === "#eval-source-map")
180-
compiler.apply(new EvalSourceMapDevToolPlugin(null, "\n//# sourceMappingURL=[url]"));
180+
compiler.apply(new EvalSourceMapDevToolPlugin("\n//# sourceMappingURL=[url]"));
181181
else if(options.devtool === "#@evalsourcemap" ||
182182
options.devtool === "#@eval-sourcemap" ||
183183
options.devtool === "#@eval-source-map")
184-
compiler.apply(new EvalSourceMapDevToolPlugin(null, "\n/*\n//@ sourceMappingURL=[url]\n//# sourceMappingURL=[url]\n*/"));
184+
compiler.apply(new EvalSourceMapDevToolPlugin("\n/*\n//@ sourceMappingURL=[url]\n//# sourceMappingURL=[url]\n*/"));
185185

186186
function itemToPlugin(item, name) {
187187
if(Array.isArray(item))

0 commit comments

Comments
 (0)