-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
a variable named 'filter' can be incorrectly transformed by transform-runtime plugin #10205
a variable named 'filter' can be incorrectly transformed by transform-runtime plugin #10205
Comments
Hey @bcutler-work! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
If anyone wants to fix this issue, it's a problem here: babel/packages/babel-plugin-transform-runtime/src/index.js Lines 432 to 453 in 5d9a786
If the Before working on this issue, please leave a comment to let others know! If you don't know how to clone Babel, follow these steps: (you need to have
|
Looks interesting, i would like to try 🙂 |
Thanks! If you need any help, you can ask in our slack channel (https://slack.babeljs.io/) |
Bug Report
Current Behavior
When
@babel/plugin-transform-runtime
hascorejs
set to3
, it can incorrectly transform property access using a variable calledfilter
. (Note: NOT the propertyfilter
.)Actual output:
Input Code
Expected behavior/code
Expected output: (if
corejs
is set tofalse
, this is the output, as expected)Babel Configuration
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: