Skip to content

Commit

Permalink
Merge pull request #1978 from embroider-build/webpack-close
Browse files Browse the repository at this point in the history
Webpack: close the compiler
  • Loading branch information
ef4 committed Jun 11, 2024
2 parents 97c41da + 9e4c975 commit 7a6f88e
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 @@ -564,7 +564,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 7a6f88e

Please sign in to comment.