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 regressions in source maps #876

Merged
merged 5 commits into from
Mar 5, 2025
Merged

Conversation

wkillerud
Copy link
Contributor

@wkillerud wkillerud commented Mar 1, 2025

This PR fixes source maps that broke in 6.0.0 in some cases, by transforming the sourcemaps generated by the new Sass JS API to match the old output.

  • Relative file paths instead of absolute file:// URLs.
  • Replace data:<file contents> with relative path to file.
  • Update tests to only accept the relative path format, regardless of compiler.

Fixes #875

@wkillerud wkillerud force-pushed the source-maps branch 3 times, most recently from d329e37 to b991f2d Compare March 1, 2025 15:11
@wkillerud
Copy link
Contributor Author

@xzyfer, when you have the time, I have a regression fix for sourcemaps in gulp-sass.

The CI tests were a bit flaky on Windows around the removal of the result directory, so I took the liberty of upgrading to a version of rimraf that is more stable (according to the changelog). Its minimum version is Node 14, so I dropped 12 from the test matrix.

@xzyfer
Copy link
Collaborator

xzyfer commented Mar 5, 2025

Thanks for all your work @wkillerud. This all looks reasonable to me.

@xzyfer xzyfer merged commit 9ce7c0c into dlmanning:master Mar 5, 2025
5 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.

After upgrading to version 6.0.0, source file URLs are not generated correctly
2 participants