This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added __self to fbt ignored props (#137)
Summary: Recently, a bugfix went out for `babel-plugin-transform-react-jsx-self` that moves adding the `__self` JSX attribute before the arrow function transform. This has the side effect of adding the `__self` attribute before the fbt transform as well. This PR marks `__self` as a passed through but purposefully ignored attribute so that this change does not cause fbt to throw because of an unknown attribute Pull Request resolved: #137 Test Plan: I wrote a test to verify that the attribute is ignored. I also manually changed the code in the WWW repo and verified running the `self` transform in conjunction with this transform no longer throws an error. Reviewed By: kayhadrin Differential Revision: D20932477 Pulled By: lunaruan fbshipit-source-id: 9d29608fc392ef962749d292a74d0c660d72b310
- Loading branch information
1 parent
323c1cb
commit 8d997f6
Showing
4 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters