Skip to content

feat(solidstart): Respect user-provided source map setting #14979

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 3 commits into from
Jan 13, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jan 10, 2025

Closes #13994

// Only if source maps were previously not set, we update the "filesToDeleteAfterUpload" (as we override the setting with "hidden")
typeof viteConfig.build?.sourcemap === 'undefined'
) {
// This also works for adapters, as the source maps are also copied to e.g. the .vercel folder
Copy link
Member

Choose a reason for hiding this comment

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

l: any chance this comment is from astro (not sure if solid start has adapters)? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

oh yes, good catch

});
}

return [
Copy link
Member

Choose a reason for hiding this comment

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

l: If we only return sentryVitePlugin() here, we don't need to spread the plugins into a new array but can simply return the call directly.

Copy link
Member

Choose a reason for hiding this comment

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

This was done to make it easier to add more plugins if we ever need, but I guess we can cross that bridge then :)

…rcemaps-hidden

# Conflicts:
#	docs/migration/v8-to-v9.md
typeof viteConfig.build?.sourcemap === 'undefined'
) {
// This also works for adapters, as the source maps are also copied to e.g. the .vercel folder
updatedFilesToDeleteAfterUpload = ['.*/**/*.map'];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
updatedFilesToDeleteAfterUpload = ['.*/**/*.map'];
updatedFilesToDeleteAfterUpload = ['./**/*.map'];

Unless this is intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is intentional. It should match .output, .vercel, etc.

@s1gr1d s1gr1d merged commit 957878a into develop Jan 13, 2025
37 checks passed
@s1gr1d s1gr1d deleted the sig/solidstart-sourcemaps-hidden branch January 13, 2025 09:07
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.

Respect user setting for sourcemap generation option in SolidStart
4 participants