Skip to content

Don't print minified code when the build fails#15106

Merged
adamwathan merged 2 commits into
nextfrom
fix/v4-better-error-output-on-failure
Nov 22, 2024
Merged

Don't print minified code when the build fails#15106
adamwathan merged 2 commits into
nextfrom
fix/v4-better-error-output-on-failure

Conversation

@thecrypticace

Copy link
Copy Markdown
Contributor

Fix #15085

We were relying on Node's printing of errors during build but this prints the line of code the error occurs on. Since the code is minified you'd get a really long string of code that wrapped a ton in the console before the actual error. Now we print errors during build like we do in watch mode.

@thecrypticace thecrypticace changed the title Print better errors during builds Don't print minified code when the build fails Nov 22, 2024
@thecrypticace thecrypticace marked this pull request as ready for review November 22, 2024 14:38
@thecrypticace thecrypticace requested a review from a team as a code owner November 22, 2024 14:38
@adamwathan adamwathan merged commit de096f7 into next Nov 22, 2024
@adamwathan adamwathan deleted the fix/v4-better-error-output-on-failure branch November 22, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v4] Crash on unknown keywords

2 participants