-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Some code left uncompiled with specific browserlist config (boolean()) #10266
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
Comments
Your reproduction seems to be wrong? |
@kdy1 Seems fine 🤔 ![]() |
Do you mean the member property name should be renamed? |
boolean is fine to be there if it’s a property of a member expression. |
@kdy1 |
Sorry, I was looking at the other boolean() call |
As someone requested on Discord, I'm writing a guideline to fix this issue. Guide(1 and 2 are optional)
These steps ensure the browserslist data is the latest, which may be required for the next step.
(See playground)
Thank you in advance! |
@kdy1 I followed the instructions in your comment; however, in |
Yes, I think so. But note that #10274 may have fixed this issue. You can run |
No, it didn't fix the issue. |
Describe the bug
When using
cover 75% in RU
as browserlist config, part of code left uncompiled. But withcover 74% in RU
everything is fine.As a workaround I use
import { boolean as boo } from 'yup';
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.11.13&code=H4sIAAAAAAAAA62QsU7DMBCG9zzFbbWlqNlbUgkJsVWV6NAROfE1OWL7jOO0oCjvjpu2wMjActJvf777fGQ9hwgjnCm2zxwsdTDBMbCFxXGOi3VGd4irN6xjDhWzQeW%2Byc%2FBJyyr2fURIqZSwpgBnJQhrSKx29ctWrW6dRCXS4CigDOHjlwzR%2BofG3RxdW8v5DLg%2B0ABtZB5Qqa5tsppg%2FuhspRYIaHcwDjl2XQzSG%2BXhhtx8ZDpDD9m%2B6vcEyrzkoZsWStz%2BPlz%2BWsB4m%2FqfUfeowZ%2B3f2LvhTX8ND7tNpiI9dfJ1TbvJ0BAAA%3D&config=H4sIAAAAAAAAA1WOSwrDMAxE9zmFEXTXbSn0Dt0UegDjKsEh%2FiA5oSHk7rGd2E130szoaZZGCOhZwUMscYyLl8RIdY8KzzbIb1QgzB5ZkfYBrsUNnKxAI2Zl3Q0YnGOMRisHxkMz2up2PqOVM56Q%2BT%2BYotJ2Q73fyc1BB%2BM%2BYzaPyqlWqhdpxtme4ZcsHysdND%2FLeSqdNbTTiSapw8A7cEIS99tFaCte78xt1g2wo0klNAEAAA%3D%3D
SWC Info output
No response
Expected behavior
boolean()
should be compiledActual behavior
boolean()
left uncompiledVersion
1.11.13
Additional context
No response
The text was updated successfully, but these errors were encountered: