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: add parameter to configure selector limit #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YellowKirby
Copy link

Frameworks such as Tailwind can introduce stylesheets with a large number of selectors, and at the moment this addon has a hard 1000-selector limit before it stops iterating.

This PR makes that limit configurable, with the caveat that it might hurt performance. Since we're primarily using this addon for visual regression testing I'd much rather have completeness over performance.

I did notice that this was discussed a bit here so I'd be happy to look into alternative solutions if that comment is still applicable.

@Scurio
Copy link

Scurio commented May 10, 2023

We are also running into this problem with a larger framework and would like to put a quite high limit, performance seems to be fine enough for us with a higher limit (local testing).

@YellowKirby YellowKirby force-pushed the selectorLimit branch 2 times, most recently from 211dbb2 to bd6defd Compare May 10, 2023 16:11
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.

None yet

2 participants