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:
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-domto their dependency list and requiringreact-dom/lib/ReactFiberReconciler.jsto build and expose their custom renderer.Ideally,
ReactFiberReconciler.jswould be distributed with thereactpackage or as a standalonereact-fiber-reconcilerpackage. Whether this is atreact/reconciler.jsorreact/lib/reconciler.jsidk. I think at the root is better to continue the discouragement of looking inreact/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: