We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d32f6e6 + 7dc54a1 commit 3050156Copy full SHA for 3050156
1 file changed
lib/SourceMapDevToolPlugin.js
@@ -44,7 +44,7 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
44
str = str.split("!");
45
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
46
var idx;
47
- while((idx = sourceMap.sources.indexOf(str) >= 0) && (idx < i)) {
+ while ((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
48
str += "*";
49
}
50
sourceMap.sources[i] = str;
@@ -80,4 +80,4 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
80
function basename(name) {
81
if(name.indexOf("/") < 0) return name;
82
return name.substr(name.lastIndexOf("/")+1);
83
-}
+}
0 commit comments