Skip to content

Commit 5fab3cb

Browse files
committed
two small changes
- addEntry callback passes module - debugId test starts from 1000
1 parent 982dd15 commit 5fab3cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Compilation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ class Compilation extends Tapable {
474474
const idx = this.preparedChunks.indexOf(slot);
475475
this.preparedChunks.splice(idx, 1);
476476
}
477-
return callback();
477+
return callback(null, module);
478478
});
479479
}
480480

test/Chunk.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("Chunk", () => {
1010

1111
beforeEach(() => ChunkInstance = new Chunk("chunk-test", "module-test", "loc-test"));
1212

13-
it("should have debugId more than 100", () => should(ChunkInstance.debugId).be.above(100));
13+
it("should have debugId more than 999", () => should(ChunkInstance.debugId).be.above(999));
1414

1515
it("returns a string with modules information", () => should(ChunkInstance.toString()).be.exactly("Chunk[]"));
1616

0 commit comments

Comments
 (0)