[Flare] Move unstable_createEventComponent to ReactDOM#15890
[Flare] Move unstable_createEventComponent to ReactDOM#15890trueadm merged 5 commits intofacebook:masterfrom
Conversation
|
React: size: -0.3%, gzip: -0.2% Details of bundled changes.Comparing: 353e0ee...502316d react
react-events
react-dom
Generated by 🚫 dangerJS |
| entry: 'react-events/press', | ||
| global: 'ReactEventsPress', | ||
| externals: ['react'], | ||
| externals: ['react-dom'], |
There was a problem hiding this comment.
I believe this means that we should add it as a dep in the package.json.
https://github.com/facebook/react/blob/master/packages/react-events/package.json#L40
I know yarn pnp relied on this package information for module resolution.
That's unfortunate since it's not a dep for the whole package. Just when used in a DOM environment. Not sure how mixed RN / web code deals with this. cc @necolas
There was a problem hiding this comment.
This isn't a big deal for now. We aren't going to be publishing react-events anytime soon. This was one of the reasons I tried to avoid this approach to begin with, but we could get around this with some kind of build step, it just means that these can't really ever go in react, but must be their own separate package – otherwise react will pull in ever renderer out there.
1f82973 to
e4ce62d
Compare
This PR does two things:
React.unstable_createEventComponenttoReactDOM.unstable_createEventComponent.