Skip to content

Commit eacb1de

Browse files
committed
fix missed rpc call for webpack 2/3
1 parent 502e154 commit eacb1de

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,14 @@ class ForkTsCheckerWebpackPlugin {
450450
}
451451

452452
try {
453-
this.service!.send(this.cancellationToken);
453+
this.serviceRpc!.rpc<RunPayload, RunResult>(
454+
RUN,
455+
this.cancellationToken.toJSON()
456+
).then(result => {
457+
if (result) {
458+
this.handleServiceMessage(result);
459+
}
460+
});
454461
} catch (error) {
455462
if (!this.silent && this.logger) {
456463
this.logger.error(

0 commit comments

Comments
 (0)