[build/canvas] Fix runtime generation (#137972) (#138029)

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 <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit af58ee866d)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
Kibana Machine 2022-08-03 15:26:11 -04:00 committed by GitHub
parent 7679ff4576
commit b242ba6b8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)