Skip to content

feat(sveltekit): Streamline build logs #17306

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 5 commits into from
Aug 7, 2025
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Aug 4, 2025

This streamlines the build logs for sveltekit. For this, I aligned how we handle source maps setting with other SDKs, which is a bit different then how sveltekit did it.

  1. Only show log messages when debug: true
  2. Show short warning when sourceMaps: false and debug: false, more details when debug: true is set
  3. Re-organize how filesToDeleteAfterUpload is set, based on other SDKs (?? I hope that makes sense....)

@mydea mydea requested a review from Lms24 August 4, 2025 12:38
@mydea mydea self-assigned this Aug 4, 2025
cursor[bot]

This comment was marked as outdated.

@mydea
Copy link
Member Author

mydea commented Aug 4, 2025

wait this does not work, let me draft it again...

@mydea mydea marked this pull request as draft August 4, 2025 13:59
@mydea mydea marked this pull request as ready for review August 5, 2025 08:35
cursor[bot]

This comment was marked as outdated.

@@ -60,8 +62,12 @@ export async function makeCustomSentryVitePlugins(options?: CustomSentryVitePlug
},
};

const { promise: filesToDeleteAfterUpload, resolve: resolveFilesToDeleteAfterUpload } =
createFilesToDeleteAfterUploadPromise();
let _resolveFilesToDeleteAfterUpload:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should create a utility that does this, but then does a node version check to run Promise.withResolvers

cursor[bot]

This comment was marked as outdated.

@mydea mydea force-pushed the fn/sveltekit-build-logs branch from 3d12225 to 66636ca Compare August 6, 2025 11:22
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up and sorry for the late review! LGTM!

@mydea mydea merged commit 6829fda into develop Aug 7, 2025
36 checks passed
@mydea mydea deleted the fn/sveltekit-build-logs branch August 7, 2025 11:14
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