Skip to content

Fix @import url() being stripped#16144

Merged
RobinMalfait merged 2 commits into
tailwindlabs:mainfrom
wongjn:hotfix/external-import
Feb 1, 2025
Merged

Fix @import url() being stripped#16144
RobinMalfait merged 2 commits into
tailwindlabs:mainfrom
wongjn:hotfix/external-import

Conversation

@wongjn

@wongjn wongjn commented Feb 1, 2025

Copy link
Copy Markdown
Collaborator

Regression from #16121, where empty at-rules are stripped from output. There are some exceptions made (like @layer) but it seems @import was missed. This PR assumes that the non-url() @imports have already been dealt with up to this point.

Fixes #16136.

@wongjn wongjn requested a review from a team as a code owner February 1, 2025 10:34

@RobinMalfait RobinMalfait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot, good catch thanks! Will drop a release with this fix, thanks!

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.

@import statement is not working in v4.0.2

2 participants