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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.)

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

1 participant