Description
This issue is intended to be a discussion for how to distribute the ReactFiberReconciler.js file and dependencies for custom renderers.
Currently first-class renderers within the React codebase/Facebook ecosystem do not have any concerns for this because of Haste / access to the React.js build + publish tooling within this codebase.
3rd party renderers are currently adding react-dom
to their dependency list and requiring react-dom/lib/ReactFiberReconciler.js
to build and expose their custom renderer.
Ideally, ReactFiberReconciler.js
would be distributed with the react
package or as a standalone react-fiber-reconciler
package. Whether this is at react/reconciler.js
or react/lib/reconciler.js
idk. I think at the root is better to continue the discouragement of looking in react/lib/*
for anything.
I understand flat bundles are coming, too. I don’t know if that should block this or if this could be a flat bundle, or any other alternative.
Is this something the team is ready to commit to and support if we came to a decision on approach and I put together a PR?
Related issues:
- Create Separate Copies of Each Renderer #6795 Create Separate Copies of Each Renderer
- Include flow type definitions #5472 Include flow type definitions (flow type distribution proposal at Include flow type definitions #5472 (comment))