Skip to content

Commit cefb2c5

Browse files
authored
Change afterCompile to afterEmit hook (#14)
See <andywer/threads.js#194 (comment)>.
1 parent cf3d9e2 commit cefb2c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class WorkerPlugin {
8484
}
8585
});
8686

87-
compiler.hooks.afterCompile.tap(NAME, compilation => {
87+
compiler.hooks.afterEmit.tap(NAME, compilation => {
8888
if (workerId === 0) {
8989
compilation.warnings.push({
9090
message:

0 commit comments

Comments
 (0)