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: absolute: true source maps will preserve source content #1788

Merged
merged 5 commits into from Oct 12, 2022

Conversation

KingSora
Copy link
Contributor

@KingSora KingSora commented Oct 12, 2022

Good day!

I noticed a bug within postcss where the sourceContent field is [null] if I'm using the absolute: true option. This happens, because if I'm using absolute: true all the source paths are converted to file urls With this change the internal mapping is not correct anymore because we compare file paths with file urls.

With this change this behavior should be fixed, I've also added a test to reflect the changes.

@ai
Copy link
Member

ai commented Oct 12, 2022

Looks good. I will try to merge it today evening.

@KingSora
Copy link
Contributor Author

@ai thanks! :)

@andry900
Copy link

Looks good. I will try to merge it today evening.

Thank you @ai, so you'll release a new version of the library this evening?

@ai ai merged commit a11d868 into postcss:main Oct 12, 2022
@ai
Copy link
Member

ai commented Oct 12, 2022

Released in 8.4.18.

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

3 participants