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: use correct sourcemap line numbers with css-text and lit-css #145

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

mattlewis92
Copy link
Contributor

Hi there! Thanks for this awesome plugin 😄

We noticed an issue where our sourcemaps were broken when using type: 'css-text' and the sources would be pointed to the previous line. When adding the same sass to our global stylesheets everything worked as expected, upon reading the source I noticed the plugin would add a leading newline to modules that use css-text. When removing that leading new line our sourcemaps now work as expected, which makes sense as the transformed output currently has a leading newline which isn't represented in the sourcemap.

While I was there, I also applied the same fix to lit-css.

@glromeo glromeo merged commit fc93e30 into glromeo:main Aug 24, 2023
1 check 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