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

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>
This commit is contained in:
Jonathan Budzenski 2022-08-03 14:14:40 -04:00 committed by GitHub
parent 88eae3ef40
commit af58ee866d
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)