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

babel-plugin-transform-class-properties: Ignore type annotations when looking for name collisions #6082

Merged
merged 1 commit into from Aug 11, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 9, 2017

Q A
Patch: Bug Fix? Yes
Major: Breaking Change? No
Minor: New Feature? No
Deprecations? No
Spec Compliancy? No
Tests Added/Pass? Yes
Fixed Tickets
License MIT
Doc PR
Dependency Changes No

Skip TypeAnnotation nodes when looking for name collisions. This avoids unnecessary calls to _initialiseProps.
Note: I had to put the test in its own directory because otherwise it would inherit plugins from its parent directory's options, and I needed to compile to a class to reproduce this problem.

@mention-bot
Copy link

@andy-ms, thanks for your PR! By analyzing the history of the files in this pull request, we identified @existentialism, @hzoo and @motiz88 to be potential reviewers.

@hzoo hzoo added the PR: Bug Fix 🐛 A type of pull request used for our changelog categories label Aug 10, 2017
@hzoo
Copy link
Member

hzoo commented Aug 10, 2017

Note: I had to put the test in its own directory because otherwise it would inherit plugins from its parent directory's options

Yeah maybe we should remove that behavior, ends up being more annoying to deal with

Copy link
Member

@hzoo hzoo left a comment

Choose a reason for hiding this comment

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

lgtm, dono if it conflicts with #6076 when merging

@existentialism existentialism merged commit 9243c78 into babel:7.0 Aug 11, 2017
@ghost ghost deleted the class-property-type branch August 11, 2017 15:43
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants