-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix(plugin-react): duplicate __self prop and __source prop #9387
Conversation
Would you explain why this was happening only when Also IMO we should remove |
Because the
Not quite agree, we should not remove the user-defined |
I did some research, I think the root of the problem is |
I think this is a build consistency / development info / runtime performance trade-off.
|
About the runtime perf, I'm not sure how much it affects. |
Exactly!
I think there are very few cases where a bundle contains It is worth mentioning that before #9386, I found that most of the |
@aleclarson Thank you, Can you review this? |
I am hoping this PR will be merged. |
Description
fix: #9363
Both __source and __self are automatically set when using the automatic runtime.
So we should avoid transform a
ReactElement
containing__source
or__self
props to jsx.Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).