Skip to content

Conversation

sebmarkbage
Copy link
Collaborator

Like #33441 but for Flight.

This is just one of the many combinations needed. I'm just starting with one.

@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jun 5, 2025
i,
e
);
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These ones are stateful registers so we need to register with both bundles since each has its own map.

@react-sizebot
Copy link

react-sizebot commented Jun 5, 2025

Comparing: 93f1668...4fc8543

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.05% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 530.07 kB 530.07 kB = 93.57 kB 93.57 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 651.16 kB 651.16 kB = 114.70 kB 114.70 kB
facebook-www/ReactDOM-prod.classic.js = 676.11 kB 676.11 kB = 118.97 kB 118.97 kB
facebook-www/ReactDOM-prod.modern.js = 666.39 kB 666.39 kB = 117.36 kB 117.36 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 122.62 kB New file 0.00 kB 23.04 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.69 kB New file 0.00 kB 11.99 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 171.76 kB New file 0.00 kB 31.77 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 98.19 kB New file 0.00 kB 19.96 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 106.96 kB New file 0.00 kB 20.14 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.15 kB New file 0.00 kB 11.90 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 154.96 kB New file 0.00 kB 28.57 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 93.59 kB New file 0.00 kB 19.18 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 106.96 kB New file 0.00 kB 20.14 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.15 kB New file 0.00 kB 11.90 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 154.96 kB New file 0.00 kB 28.57 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 93.59 kB New file 0.00 kB 19.18 kB
oss-experimental/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-stable-semver/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-stable/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-experimental/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB
oss-stable-semver/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB
oss-stable/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 122.62 kB New file 0.00 kB 23.04 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.69 kB New file 0.00 kB 11.99 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 171.76 kB New file 0.00 kB 31.77 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 98.19 kB New file 0.00 kB 19.96 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 106.96 kB New file 0.00 kB 20.14 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.15 kB New file 0.00 kB 11.90 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 154.96 kB New file 0.00 kB 28.57 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 93.59 kB New file 0.00 kB 19.18 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.development.js New file 0.00 kB 106.96 kB New file 0.00 kB 20.14 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node-webstreams.unbundled.production.js New file 0.00 kB 58.15 kB New file 0.00 kB 11.90 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.development.js New file 0.00 kB 154.96 kB New file 0.00 kB 28.57 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node-webstreams.unbundled.production.js New file 0.00 kB 93.59 kB New file 0.00 kB 19.18 kB
oss-experimental/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-stable-semver/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-stable/react-server-dom-webpack/client.node.unbundled.js +277.99% 0.27 kB 1.01 kB +105.92% 0.17 kB 0.35 kB
oss-experimental/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB
oss-stable-semver/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB
oss-stable/react-server-dom-webpack/server.node.unbundled.js +44.25% 0.74 kB 1.07 kB +16.17% 0.30 kB 0.35 kB

Generated by 🚫 dangerJS against 4fc8543

@sebmarkbage
Copy link
Collaborator Author

I'm not going to enable any tests for these. I'm also not going to enable types for the rest of them.

@sebmarkbage sebmarkbage force-pushed the nodewebstreamwebpack branch from 32d2e87 to 4fc8543 Compare June 5, 2025 14:51
@sebmarkbage sebmarkbage merged commit a5110b2 into facebook:main Jun 5, 2025
241 checks passed
sebmarkbage added a commit that referenced this pull request Jun 6, 2025
)

Follow up to #33442. This is the bundled version.

To keep type check passes from exploding and the maintainance of the
annoying `paths: []` list small, this doesn't add this to flow type
checks. We might miss some config but every combination should already
be covered by other one passes.

I also don't add any jest tests because to test these double export
entry points we need conditional importing to cover builds and
non-builds which turns out to be difficult for the Flight builds so
these aren't covered by any basic build tests.

This approach is what I'm going for, for the other bundlers too.
sebmarkbage added a commit that referenced this pull request Jun 6, 2025
sebmarkbage added a commit that referenced this pull request Jun 6, 2025
Reverts #33457, #33456 and #33442.

There are too many issues with wrappers, lazy init, stateful modules,
duplicate instantiation of async_hooks and duplication of code.

Instead, we'll just do a wrapper polyfill that uses Node Streams
internally.

I kept the client indirection files that I added for consistency with
the server though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants