Skip to content

ref(build): Improve logging in prepack scripts #5071

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

Merged
merged 1 commit into from
May 11, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented May 11, 2022

This improves logging in our prepack scripts, primarily by adding newlines and an ERROR prefix (to make errors easier to spot in a long stream of logs) and by logging the actual error when something goes wrong (rather than just logging that something is wrong without saying what is wrong).

@lobsterkatie lobsterkatie force-pushed the kmclb-log-error-in-prepack-scripts branch from cd0dab4 to b3baa15 Compare May 11, 2022 06:53
@github-actions
Copy link
Contributor

github-actions bot commented May 11, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.78 KB (-6.77% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 58.38 KB (-9.65% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.54 KB (-6.98% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 52.61 KB (-9.26% 🔽)
@sentry/browser - Webpack (gzipped + minified) 19.33 KB (-16.83% 🔽)
@sentry/browser - Webpack (minified) 61.47 KB (-24.77% 🔽)
@sentry/react - Webpack (gzipped + minified) 19.35 KB (-16.87% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 42.81 KB (-10.91% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.43 KB (-6.3% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 23 KB (-6.05% 🔽)

@lobsterkatie lobsterkatie force-pushed the kmclb-log-error-in-prepack-scripts branch from b3baa15 to 77a4216 Compare May 11, 2022 21:11
@lobsterkatie lobsterkatie force-pushed the kmclb-log-error-in-prepack-scripts branch from 77a4216 to 9efb1a1 Compare May 11, 2022 21:13
@lobsterkatie lobsterkatie merged commit 6b3ea05 into 7.x May 11, 2022
@lobsterkatie lobsterkatie deleted the kmclb-log-error-in-prepack-scripts branch May 11, 2022 22:12
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone May 12, 2022
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
This improves logging in our prepack scripts, primarily by adding newlines and an `ERROR` prefix (to make errors easier to spot in a long stream of logs) and by logging the actual error when something goes wrong (rather than just logging that something is wrong without saying _what_ is wrong).
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.

3 participants