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: sourcemap handling #143

Closed
wants to merge 16 commits into from
Closed

Conversation

KingSora
Copy link
Contributor

@KingSora KingSora commented Oct 12, 2022

Good day!

I've noticed that I'm getting incorrect source maps from postcss with using this plugin. This PR should fix this behavior.

The PR itself is a bit messy, becase I've removed all the changes I made in #142 (so its easier to review) and it changes all the snapshots.

The snapshots have changed because I've changed the logic from string concatenation to "native" postcss nodes. This causes newlines and possibly whitespaces to be different, but the content is the same.

I've also added and adapted tests to reflect the changes.

If you want you can check the correctness of the sourcemaps yourself with this tool: https://evanw.github.io/source-map-visualization/ - Just upload the generated file and its sourcemap

@KingSora KingSora mentioned this pull request Nov 4, 2022
@KingSora
Copy link
Contributor Author

KingSora commented Nov 4, 2022

closed in favor of #146

@KingSora KingSora closed this Nov 4, 2022
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