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

fix: loader errors when sourcemaps are disabled in svelte #236

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

wabain
Copy link
Contributor

@wabain wabain commented Oct 16, 2023

This pull request fixes a couple errors I hit when setting { compilerOptions: { enableSourcemap: false } }. At different places, the loader code assumes that each of js.map and css.map are non-null. Both errors are triggered in the added tests.

(I assume that disabling sourcemaps at the Svelte level rather than through the webpack config is uncommon. In my case, I was disabling CSS sourcemaps for Svelte specifically in order to work around some issues with preprocessor map handling. I found the JS sourcemap error in the course of fixing the CSS error.)

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

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

thank you!

@dummdidumm dummdidumm merged commit a90bcb4 into sveltejs:master Jun 4, 2024
6 checks passed
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.

2 participants