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

CSS codemod: Fix incorrect empty layer() at the end of @import at-rules #14513

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where some @import at-rules had an empty layer() attached at the end of the @import string.

We should only add that if a Tailwind directive or Tailwind import such as @tailwind base or @import "tailwindcss/base" preceded the current @import at-rule. If there was no Tailwind directive, the lastLayer will be empty and we don't need to attach it to the @import string.

@RobinMalfait RobinMalfait changed the title Fix incorrect empty layer() at the end of @import at-rules CSS Codemod: Fix incorrect empty layer() at the end of @import at-rules Sep 25, 2024
@RobinMalfait RobinMalfait changed the title CSS Codemod: Fix incorrect empty layer() at the end of @import at-rules CSS codemod: Fix incorrect empty layer() at the end of @import at-rules Sep 25, 2024
@RobinMalfait RobinMalfait merged commit 723f5db into next Sep 25, 2024
3 checks passed
@RobinMalfait RobinMalfait deleted the fix/empty-layer-marker branch September 25, 2024 11:48
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