Skip to content
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

Remove unnecessary enableSourcemap usage #862

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Feb 23, 2024

enableSourcemap for styles was disabled in SSR due to a caveat with Vite <5 static env replacement, but since Vite 5, we don't have to workaround that anymore. So the enableSourcemap setting for it can be removed. Tests were added in #201. In practice, this shouldn't incur a perf hit.

We also use enableSourcemap in another place - the advanced queries. Since Svelte 5, the option was deprecated:

The enableSourcemap option has been removed. Source maps are always generated now, and tooling can choose to ignore them.

So I disabled it for Svelte 5. We could also completely remove in for Svelte 4, but I didn't want to change too much.

@dominikg dominikg merged commit 324f569 into main Feb 24, 2024
5 checks passed
@dominikg dominikg deleted the remove-enable-sourcemap branch February 24, 2024 23:06
@github-actions github-actions bot mentioned this pull request Feb 24, 2024
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.

None yet

2 participants