Skip to content

fix browserslist support queries #1042

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

Conversation

romainmenke
Copy link
Member

@romainmenke romainmenke commented Jul 11, 2023

fixes : #1041

On the site :

Screenshot 2023-07-11 at 19 00 25

I didn't really want to provide UI to communicate error messages.
alert() should be fine for now 😄

Comment on lines +2 to +16
export const browsersWithSupportStats = [
'and_chr',
'and_ff',
'android',
'chrome',
'edge',
'firefox',
'ie',
'ios_saf',
'op_mini',
'op_mob',
'opera',
'safari',
'samsung',
];
Copy link
Member Author

Choose a reason for hiding this comment

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

If this includes something that we don't have data for, like baidu and the browserslist query of the user also includes one of these then the internal logic in postcss-preset-env will always transpile everything.

I've moved this to a separate file and I am not using this a filter consistently throughout the codebase.

Comment on lines +9 to +11
.test-custom-properties {
order: var(--order);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

var() is not transpiled, and this matches the expectations for this test.

Copy link
Member

@Antonio-Laguna Antonio-Laguna left a comment

Choose a reason for hiding this comment

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

LGTM!

@romainmenke romainmenke merged commit edb9ce1 into main Jul 11, 2023
@romainmenke romainmenke deleted the fix-browserslist-support-queries--intuitive-carolina-dog-7b168f37c2 branch July 11, 2023 17:22
@diesieben07
Copy link

Wow, thank you so much for the blazing-fast turn around! Good work! 🚀

@romainmenke
Copy link
Member Author

We still have to release this, but we will do so as soon as possible 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

postcss-preset-env behaves differently than in the "interactive playground"
3 participants