Skip to content

Commit 5f9d2ee

Browse files
committed
Appending the _tmp_shared contents via an earlier hook
1 parent ba99646 commit 5f9d2ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/webpack/shared-entry-concat-plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getChunkFilename(stats, chunkName) {
3737
}
3838

3939
SharedEntryConcatPlugin.prototype.apply = function(compiler) {
40-
const done = (stats) => {
40+
const emit = (stats) => {
4141
if (stats.hasErrors()) {
4242
return;
4343
}
@@ -78,9 +78,9 @@ SharedEntryConcatPlugin.prototype.apply = function(compiler) {
7878
fs.unlinkSync(tmpEntryBootstrapFile);
7979
};
8080

81-
compiler.hooks.done.tap(
81+
compiler.hooks.emit.tap(
8282
{ name: 'SharedEntryConcatPlugin' },
83-
done
83+
emit
8484
);
8585
};
8686

0 commit comments

Comments
 (0)