Skip to content

Commit 3efb715

Browse files
committed
fixes webpack#316
1 parent 3050156 commit 3efb715

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/EvalSourceMapDevToolModuleTemplatePlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EvalSourceMapDevToolModuleTemplatePlugin.prototype.apply = function(moduleTempla
2929
str = str.split("!");
3030
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
3131
var idx;
32-
while((idx = sourceMap.sources.indexOf(str) >= 0) && (idx < i)) {
32+
while((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
3333
str += "*";
3434
}
3535
sourceMap.sources[i] = str;

lib/SourceMapDevToolPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
4444
str = str.split("!");
4545
str = str.pop() + (str.length > 0 ? " " + str.join("!") : "");
4646
var idx;
47-
while ((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
47+
while((idx = sourceMap.sources.indexOf(str)) && (idx >= 0) && (idx < i)) {
4848
str += "*";
4949
}
5050
sourceMap.sources[i] = str;

0 commit comments

Comments
 (0)