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

Replace Linaria preprocessor with postcss to fix an error of postcss-transform-unit #241

Merged
merged 1 commit into from
May 29, 2024

Conversation

malash
Copy link
Collaborator

@malash malash commented May 29, 2024

This PR fixes a bug where the stylis package used by Linaria always removes all comments in CSS, causing the postcss-transform-unit to fail to parse the /* no */ comment.

Setting the preprocessor to none could preserve the comments but lacks some features from stylis. Therefore, I decided to implement these features in a PostCSS plugin called postcss-linaria-preprocessor.

@malash malash merged commit 2e42c6d into main May 29, 2024
18 checks passed
@malash malash deleted the postcss-linaria-preprocessor branch May 29, 2024 07:19
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.

1 participant