-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
// 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 |
There was a problem hiding this comment.
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)? :)
There was a problem hiding this comment.
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 [ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updatedFilesToDeleteAfterUpload = ['.*/**/*.map']; | |
updatedFilesToDeleteAfterUpload = ['./**/*.map']; |
Unless this is intentional?
There was a problem hiding this comment.
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.
Closes #13994