Skip to content

Commit e95e385

Browse files
committed
fixed a bug with [chunkhash] in chunk id 0
1 parent 613e6a0 commit e95e385

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/JsonpMainTemplate.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ JsonpMainTemplate.prototype.renderRequireEnsure = function(hash, chunk) {
3939
var chunkHashMap = {};
4040
(function addChunk(c) {
4141
if(c.id in chunkHashMap) return;
42-
if(c.id > 0)
43-
chunkHashMap[c.id] = c.renderedHash;
44-
else
42+
if(c.entry)
4543
chunkHashMap[c.id] = undefined;
44+
else
45+
chunkHashMap[c.id] = c.renderedHash;
4646
c.chunks.forEach(addChunk);
4747
}(chunk));
4848
return [

0 commit comments

Comments
 (0)