We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f6281 commit d8a8bd3Copy full SHA for d8a8bd3
lib/SourceMapDevToolPlugin.js
@@ -20,6 +20,12 @@ class SourceMapDevToolPlugin {
20
constructor(options) {
21
if(arguments.length > 1)
22
throw new Error("SourceMapDevToolPlugin only takes one argument (pass an options object)");
23
+ // TODO: remove in webpack 3
24
+ if(typeof options === "string") {
25
+ options = {
26
+ sourceMapFilename: options
27
+ };
28
+ }
29
if(!options) options = {};
30
this.sourceMapFilename = options.filename;
31
this.sourceMappingURLComment = options.append === false ? false : options.append || "\n//# sourceMappingURL=[url]";
0 commit comments