Skip to content

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

Merged
s1gr1d merged 3 commits intodevelopfrom
sig/solidstart-sourcemaps-hidden
Jan 13, 2025
Merged

feat(solidstart): Respect user-provided source map setting#14979
s1gr1d merged 3 commits intodevelopfrom
sig/solidstart-sourcemaps-hidden

Conversation

@s1gr1d
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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