Skip to content

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
@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.

3 participants