Skip to content

Commit

Permalink
[build/canvas] Fix runtime generation (#137972) (#138029)
Browse files Browse the repository at this point in the history
This fixes an issue with the CI stats plugin using `tapAsync` instead of
`tapPromise`.  It appears that if callback() is not called in
`tapAsync`, the entrypoint is not written to disk.

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit af58ee8)

Co-authored-by: Jonathan Budzenski <[email protected]>
  • Loading branch information
kibanamachine and jbudz authored Aug 3, 2022
1 parent 7679ff4 commit b242ba6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class CiStatsPlugin {
return;
}

compiler.hooks.emit.tapAsync('CiStatsPlugin', async (compilation) => {
compiler.hooks.emit.tapPromise('CiStatsPlugin', async (compilation) => {
const { entryName } = this.options;

const assets = Object.entries(compilation.assets)
Expand Down

0 comments on commit b242ba6

Please sign in to comment.