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 for determining Desktop Safari version, improve code readability #14

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

Conversation

bogdanailincaipnt
Copy link

Running npx browserslist-to-esbuild 'supports css-grid' results in chrome57 edge12 firefox52 ie10 ios10.3 opera44 safari17.3.
The desktop Safari version should be 10.1. See https://browsersl.ist/#q=supports+css-grid.

The source of the bug is the assumption at this line that the older version is always last in the array that browserslist() returns. For Safari, Safari TP is last in the array.

I think this test should be removed. I don't see why anyone would care about Safari TP in a browserslist query. Maybe I'm missing something?
Safari TP is already handled by this line.

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

1 participant