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(css/modules): Fix handling of :global() selector #8219

Merged
merged 20 commits into from
Nov 6, 2023

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Nov 4, 2023

@kdy1 kdy1 added this to the Planned milestone Nov 4, 2023
@kdy1 kdy1 self-assigned this Nov 4, 2023
Copy link
Member Author

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_css_modules

@@ -0,0 +1,3 @@
.__local__a.b.d .__local__a.c.d {
Copy link
Member Author

Choose a reason for hiding this comment

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

@JSerFeng What's the expected output?

The playground link you posted says

.EgL3uq_a.b .c.EgL3uq_d{color:red}

but I'm not sure if it's correct.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think lightningcss is right, postcss is the same with lightningcss

Copy link
Contributor

Choose a reason for hiding this comment

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

image

@kdy1 kdy1 changed the title fix(css/modules): Fix handling of global selector fix(css/modules): Fix handling of :global() selector Nov 4, 2023
Copy link
Member Author

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_css_modules

@kdy1 kdy1 marked this pull request as ready for review November 4, 2023 20:57
@kdy1 kdy1 enabled auto-merge (squash) November 4, 2023 20:58
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 requested a review from JSerFeng November 4, 2023 21:12
@kdy1 kdy1 disabled auto-merge November 4, 2023 21:12
@JSerFeng
Copy link
Contributor

JSerFeng commented Nov 5, 2023

Thanks !

@kdy1 kdy1 enabled auto-merge (squash) November 5, 2023 23:41
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit 02cd7c2 into swc-project:main Nov 6, 2023
@kdy1 kdy1 deleted the issue-8179 branch November 6, 2023 00:51
@kdy1 kdy1 modified the milestones: Planned, v1.3.97 Nov 9, 2023
@kdy1 kdy1 modified the milestones: Planned, v1.3.97 Nov 20, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

CSS module :global function syntax
3 participants