Skip to content

Commit 2f4adaa

Browse files
committed
Added promise wrapper
1 parent 714899f commit 2f4adaa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

libs/native-federation/src/utils/angular-esbuild-adapter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ async function runEsbuild(
353353
try {
354354
const abortHandler = async () => {
355355
await ctx.cancel();
356-
await compilerPluginDispose;
357356
await ctx.dispose();
357+
await compilerPluginDispose;
358358
};
359359

360360
if (signal) {
@@ -379,9 +379,8 @@ async function runEsbuild(
379379
);
380380
} else {
381381
if (signal) signal.removeEventListener('abort', abortHandler);
382-
383-
await compilerPluginDispose;
384382
await ctx.dispose();
383+
await compilerPluginDispose;
385384
}
386385
return writtenFiles;
387386
} catch (error) {

0 commit comments

Comments
 (0)