Skip to content

Commit

Permalink
Merge pull request #24377 from storybookjs/yann/display-webpack-error…
Browse files Browse the repository at this point in the history
…s-on-build

Webpack: Display errors on build
  • Loading branch information
ndelangen committed Oct 5, 2023
2 parents f4e13cd + dac7e2f commit 7823426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/builders/builder-webpack5/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ const builder: BuilderFunction = async function* builderGeneratorFn({ startTime,
}

if (errors.length > 0) {
errors.forEach((e) => logger.error(e.message));
compiler.close(() => fail(new WebpackCompilationError({ errors })));
return;
}
Expand Down

0 comments on commit 7823426

Please sign in to comment.