Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

thecrypticace
Copy link
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
1 check passed
@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