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

refactor(preset-attributify): improve element extractor #2187

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

sibbng
Copy link
Member

@sibbng sibbng commented Feb 12, 2023

Fixes #1584
Fixes #2112
Supersedes #2134

@chu121su12 I tried pasting your code on playground and it was slowing down the editor. Every key store was taking 3-4 seconds on my machine. With this PR it seems instant as it should be.

I also tested this PR with the provided repro in #2067, and it successfully builds.

@sibbng sibbng requested a review from antfu as a code owner February 12, 2023 02:53
@netlify
Copy link

netlify bot commented Feb 12, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 7803ee3
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63e85496cd522d0008a487c1
😎 Deploy Preview https://deploy-preview-2187--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@chu121su12 chu121su12 left a comment

Choose a reason for hiding this comment

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

LGTM. Using the example in https://regex101.com/r/48y4HT/1 the new matcher improves the loop from 403 to 13 steps.

@antfu antfu merged commit 8ccb18a into main Feb 16, 2023
@antfu antfu deleted the refactor/element-extractor branch February 16, 2023 09:44
AllanChain added a commit to AllanChain/blog that referenced this pull request Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants