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

feat(unocss): support css transformers #516

Merged
merged 10 commits into from
Nov 27, 2023
Merged

feat(unocss): support css transformers #516

merged 10 commits into from
Nov 27, 2023

Conversation

kwaa
Copy link
Member

@kwaa kwaa commented Nov 26, 2023

Description

Support for using Transformer.

Tested:

These transformers export wrong types, I'll try to fix them later by creating PR to upstream.

https://arethetypeswrong.github.io/?p=%40unocss%2Ftransformer-variant-group
https://arethetypeswrong.github.io/?p=%40unocss%2Ftransformer-directives

Related Issues

Check List

  • Have you read the
    CODE OF CONDUCT
  • Have you read the document
    CONTRIBUTING
    • One pull request per feature. If you want to do more than one thing,
      send multiple pull request.
    • Write tests.
    • Run deno fmt to fix the code format before commit.
    • Document any change in the CHANGELOG.md.

@kwaa kwaa requested a review from oscarotero November 26, 2023 14:39
plugins/unocss.ts Outdated Show resolved Hide resolved
tests/unocss.test.ts Outdated Show resolved Hide resolved
@kwaa
Copy link
Member Author

kwaa commented Nov 27, 2023

The magic-string has been moved to deps and transformers are enabled by default.

@kwaa kwaa marked this pull request as ready for review November 27, 2023 04:10
@kwaa kwaa requested a review from oscarotero November 27, 2023 04:10
@oscarotero oscarotero merged commit 07f2c05 into main Nov 27, 2023
3 checks passed
@oscarotero oscarotero deleted the feat/unocss branch November 27, 2023 10:09
@oscarotero
Copy link
Member

Thank you!

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