Skip to content

Commit

Permalink
Webpack: close the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Jun 11, 2024
1 parent 4d74274 commit 3de24b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/webpack/src/ember-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,16 @@ const Webpack: PackagerConstructor<Options> = class Webpack implements Packager
})
);
}
resolve(stats);
webpack.close(err => {
if (err) {
if (stats) {
this.consoleWrite(stats.toString());
}
throw err;
}

resolve(stats);
});
} catch (e) {
reject(e);
}
Expand Down

0 comments on commit 3de24b9

Please sign in to comment.