Skip to content

Move ReactFiberTreeReflection to react-reconciler/reflection #11659

Closed
@gaearon

Description

@gaearon

We should:

  • Move ReactFiberTreeReflection to be exported from react-reconciler/reflection entry point (similar to how react-dom/test-utils entry point is set up).
  • Create a flat bundle for it (similar to how react-dom/test-utils is set up in bundles.js).
  • Change code that imports ReactFiberTreeReflection directly to do it through react-reconciler/reflection instead.
  • Make react-reconciler a dependency of react-noop-renderer in package.json. This should ensure the reconciler doesn't actually get bundled with react-noop-renderer, and instead stays a require() call. Then the interaction of these two packages will actually be tested when you run yarn test-build (after yarn build core,noop,reconciler --type=NODE).

This task is not friendly to beginners. It requires an understanding of the relationship between different packages, and a willingness to research and experiment with how our build process is set up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions