diff --git a/x-pack/plugins/canvas/shareable_runtime/webpack/ci_stats_plugin.ts b/x-pack/plugins/canvas/shareable_runtime/webpack/ci_stats_plugin.ts index 20facc666f47c..fb1e93ddbe956 100644 --- a/x-pack/plugins/canvas/shareable_runtime/webpack/ci_stats_plugin.ts +++ b/x-pack/plugins/canvas/shareable_runtime/webpack/ci_stats_plugin.ts @@ -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)