Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flight] Preinitialize Imports #26795

Closed
wants to merge 5 commits into from
Closed

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented May 8, 2023

Implements prepareDestinationForModule for react-server-dom-webpack and react-server-dom-esm.

Implements a new package react-server-dom-turbopack which largely mirrors webpack with some custom chunk-loading implemention.

There are couple utility PRs that I'll probably land separately. It'll be easiest to follow commit by commit

@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels May 8, 2023
@gnoff gnoff requested a review from sebmarkbage May 8, 2023 21:39
@react-sizebot
Copy link

react-sizebot commented May 8, 2023

Comparing: 2fba484...db45991

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.min.js = 165.63 kB 165.63 kB = 51.88 kB 51.88 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 174.70 kB 174.70 kB = 54.61 kB 54.61 kB
facebook-www/ReactDOM-prod.classic.js = 570.44 kB 570.44 kB = 100.45 kB 100.45 kB
facebook-www/ReactDOM-prod.modern.js = 554.21 kB 554.21 kB = 97.61 kB 97.61 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 58.60 kB +∞% 0.00 kB 14.05 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 11.73 kB +∞% 0.00 kB 4.42 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 63.48 kB +∞% 0.00 kB 15.38 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 13.21 kB +∞% 0.00 kB 4.97 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 62.80 kB +∞% 0.00 kB 15.24 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 12.99 kB +∞% 0.00 kB 4.89 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 61.35 kB +∞% 0.00 kB 14.85 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 12.67 kB +∞% 0.00 kB 4.77 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 103.66 kB +∞% 0.00 kB 24.76 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 26.51 kB +∞% 0.00 kB 8.92 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 104.07 kB +∞% 0.00 kB 24.88 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 26.83 kB +∞% 0.00 kB 9.02 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 108.97 kB +∞% 0.00 kB 25.80 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 28.25 kB +∞% 0.00 kB 9.50 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 106.30 kB +∞% 0.00 kB 24.96 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 27.74 kB +∞% 0.00 kB 9.35 kB
oss-experimental/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-experimental/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-experimental/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-experimental/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-experimental/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-experimental/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-experimental/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 62.33 kB +∞% 0.00 kB 14.29 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 11.99 kB +∞% 0.00 kB 4.52 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 109.55 kB +∞% 0.00 kB 25.12 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 26.70 kB +∞% 0.00 kB 9.02 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 53.56 kB +∞% 0.00 kB 13.05 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.41 kB +∞% 0.00 kB 4.05 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 58.43 kB +∞% 0.00 kB 14.36 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 11.89 kB +∞% 0.00 kB 4.60 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 57.76 kB +∞% 0.00 kB 14.23 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 11.66 kB +∞% 0.00 kB 4.51 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 56.30 kB +∞% 0.00 kB 13.83 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 11.34 kB +∞% 0.00 kB 4.40 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 98.80 kB +∞% 0.00 kB 23.88 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.30 kB +∞% 0.00 kB 8.61 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 99.21 kB +∞% 0.00 kB 23.99 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 25.62 kB +∞% 0.00 kB 8.72 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 104.56 kB +∞% 0.00 kB 25.07 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 27.09 kB +∞% 0.00 kB 9.21 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 101.89 kB +∞% 0.00 kB 24.20 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 26.59 kB +∞% 0.00 kB 9.07 kB
oss-stable-semver/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-stable-semver/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-stable-semver/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-stable-semver/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-stable-semver/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-stable-semver/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable-semver/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 56.97 kB +∞% 0.00 kB 13.26 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.68 kB +∞% 0.00 kB 4.15 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 104.45 kB +∞% 0.00 kB 24.25 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.48 kB +∞% 0.00 kB 8.71 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 53.56 kB +∞% 0.00 kB 13.05 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.41 kB +∞% 0.00 kB 4.05 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 58.43 kB +∞% 0.00 kB 14.36 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 11.89 kB +∞% 0.00 kB 4.60 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 57.76 kB +∞% 0.00 kB 14.23 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 11.66 kB +∞% 0.00 kB 4.51 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 56.30 kB +∞% 0.00 kB 13.83 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 11.34 kB +∞% 0.00 kB 4.40 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 98.80 kB +∞% 0.00 kB 23.88 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.30 kB +∞% 0.00 kB 8.61 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 99.21 kB +∞% 0.00 kB 23.99 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 25.62 kB +∞% 0.00 kB 8.72 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 104.56 kB +∞% 0.00 kB 25.07 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 27.09 kB +∞% 0.00 kB 9.21 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 101.89 kB +∞% 0.00 kB 24.20 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 26.59 kB +∞% 0.00 kB 9.07 kB
oss-stable/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-stable/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-stable/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-stable/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-stable/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-stable/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 56.97 kB +∞% 0.00 kB 13.26 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.68 kB +∞% 0.00 kB 4.15 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 104.45 kB +∞% 0.00 kB 24.25 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.48 kB +∞% 0.00 kB 8.71 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.99% 55.57 kB 57.78 kB +4.92% 13.60 kB 14.27 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.99% 55.57 kB 57.78 kB +4.92% 13.60 kB 14.27 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.85% 56.29 kB 58.46 kB +4.75% 13.75 kB 14.40 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.85% 56.29 kB 58.46 kB +4.75% 13.75 kB 14.40 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.70% 54.33 kB 56.34 kB +4.94% 13.21 kB 13.86 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.70% 54.33 kB 56.34 kB +4.94% 13.21 kB 13.86 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.65% 60.61 kB 62.83 kB +4.56% 14.62 kB 15.29 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.54% 61.34 kB 63.50 kB +4.41% 14.77 kB 15.42 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.39% 59.37 kB 61.38 kB +4.55% 14.23 kB 14.87 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.61% 11.37 kB 11.67 kB +2.40% 4.41 kB 4.52 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.61% 11.37 kB 11.67 kB +2.40% 4.41 kB 4.52 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.61% 10.65 kB 10.92 kB +2.72% 4.11 kB 4.22 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.61% 10.65 kB 10.92 kB +2.72% 4.11 kB 4.22 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.61% 11.05 kB 11.34 kB +2.85% 4.28 kB 4.40 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.61% 11.05 kB 11.34 kB +2.85% 4.28 kB 4.40 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.51% 53.04 kB 54.38 kB +2.96% 12.88 kB 13.27 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.51% 53.04 kB 54.38 kB +2.96% 12.88 kB 13.27 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.34% 12.38 kB 12.67 kB +2.56% 4.65 kB 4.77 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.34% 12.70 kB 13.00 kB +2.21% 4.79 kB 4.90 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.33% 52.83 kB 54.07 kB +3.10% 12.83 kB 13.22 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.33% 52.83 kB 54.07 kB +3.10% 12.83 kB 13.22 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.32% 11.98 kB 12.25 kB +2.34% 4.49 kB 4.60 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.31% 56.22 kB 57.52 kB +3.25% 13.03 kB 13.45 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.31% 56.22 kB 57.52 kB +3.25% 13.03 kB 13.45 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.29% 11.63 kB 11.90 kB +2.38% 4.50 kB 4.61 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.29% 11.63 kB 11.90 kB +2.38% 4.50 kB 4.61 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.29% 58.09 kB 59.42 kB +2.72% 13.91 kB 14.28 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.13% 57.88 kB 59.11 kB +2.90% 13.82 kB 14.23 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.10% 61.57 kB 62.87 kB +2.94% 14.06 kB 14.47 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.06% 12.95 kB 13.22 kB +2.03% 4.88 kB 4.98 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-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 58.60 kB +∞% 0.00 kB 14.05 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 11.73 kB +∞% 0.00 kB 4.42 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 63.48 kB +∞% 0.00 kB 15.38 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 13.21 kB +∞% 0.00 kB 4.97 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 62.80 kB +∞% 0.00 kB 15.24 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 12.99 kB +∞% 0.00 kB 4.89 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 61.35 kB +∞% 0.00 kB 14.85 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 12.67 kB +∞% 0.00 kB 4.77 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 103.66 kB +∞% 0.00 kB 24.76 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 26.51 kB +∞% 0.00 kB 8.92 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 104.07 kB +∞% 0.00 kB 24.88 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 26.83 kB +∞% 0.00 kB 9.02 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 108.97 kB +∞% 0.00 kB 25.80 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 28.25 kB +∞% 0.00 kB 9.50 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 106.30 kB +∞% 0.00 kB 24.96 kB
oss-experimental/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 27.74 kB +∞% 0.00 kB 9.35 kB
oss-experimental/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-experimental/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-experimental/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-experimental/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-experimental/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-experimental/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-experimental/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 62.33 kB +∞% 0.00 kB 14.29 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 11.99 kB +∞% 0.00 kB 4.52 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 109.55 kB +∞% 0.00 kB 25.12 kB
oss-experimental/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 26.70 kB +∞% 0.00 kB 9.02 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 53.56 kB +∞% 0.00 kB 13.05 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.41 kB +∞% 0.00 kB 4.05 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 58.43 kB +∞% 0.00 kB 14.36 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 11.89 kB +∞% 0.00 kB 4.60 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 57.76 kB +∞% 0.00 kB 14.23 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 11.66 kB +∞% 0.00 kB 4.51 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 56.30 kB +∞% 0.00 kB 13.83 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 11.34 kB +∞% 0.00 kB 4.40 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 98.80 kB +∞% 0.00 kB 23.88 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.30 kB +∞% 0.00 kB 8.61 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 99.21 kB +∞% 0.00 kB 23.99 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 25.62 kB +∞% 0.00 kB 8.72 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 104.56 kB +∞% 0.00 kB 25.07 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 27.09 kB +∞% 0.00 kB 9.21 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 101.89 kB +∞% 0.00 kB 24.20 kB
oss-stable-semver/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 26.59 kB +∞% 0.00 kB 9.07 kB
oss-stable-semver/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-stable-semver/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-stable-semver/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-stable-semver/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-stable-semver/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-stable-semver/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable-semver/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 56.97 kB +∞% 0.00 kB 13.26 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.68 kB +∞% 0.00 kB 4.15 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 104.45 kB +∞% 0.00 kB 24.25 kB
oss-stable-semver/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.48 kB +∞% 0.00 kB 8.71 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 53.56 kB +∞% 0.00 kB 13.05 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.41 kB +∞% 0.00 kB 4.05 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.development.js +∞% 0.00 kB 58.43 kB +∞% 0.00 kB 14.36 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.edge.production.min.js +∞% 0.00 kB 11.89 kB +∞% 0.00 kB 4.60 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.development.js +∞% 0.00 kB 57.76 kB +∞% 0.00 kB 14.23 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.production.min.js +∞% 0.00 kB 11.66 kB +∞% 0.00 kB 4.51 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.development.js +∞% 0.00 kB 56.30 kB +∞% 0.00 kB 13.83 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.node.unbundled.production.min.js +∞% 0.00 kB 11.34 kB +∞% 0.00 kB 4.40 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-node-register.js +∞% 0.00 kB 1.38 kB +∞% 0.00 kB 0.74 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 98.80 kB +∞% 0.00 kB 23.88 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.30 kB +∞% 0.00 kB 8.61 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.development.js +∞% 0.00 kB 99.21 kB +∞% 0.00 kB 23.99 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.edge.production.min.js +∞% 0.00 kB 25.62 kB +∞% 0.00 kB 8.72 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js +∞% 0.00 kB 104.56 kB +∞% 0.00 kB 25.07 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.production.min.js +∞% 0.00 kB 27.09 kB +∞% 0.00 kB 9.21 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.development.js +∞% 0.00 kB 101.89 kB +∞% 0.00 kB 24.20 kB
oss-stable/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.unbundled.production.min.js +∞% 0.00 kB 26.59 kB +∞% 0.00 kB 9.07 kB
oss-stable/react-server-dom-turbopack/client.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.js +∞% 0.00 kB 0.06 kB +∞% 0.00 kB 0.08 kB
oss-stable/react-server-dom-turbopack/client.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/client.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.18 kB
oss-stable/react-server-dom-turbopack/esm/react-server-dom-turbopack-node-loader.production.min.js +∞% 0.00 kB 12.54 kB +∞% 0.00 kB 3.12 kB
oss-stable/react-server-dom-turbopack/index.js +∞% 0.00 kB 0.29 kB +∞% 0.00 kB 0.22 kB
oss-stable/react-server-dom-turbopack/node-register.js +∞% 0.00 kB 0.09 kB +∞% 0.00 kB 0.10 kB
oss-stable/react-server-dom-turbopack/server.browser.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.edge.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.js +∞% 0.00 kB 0.19 kB +∞% 0.00 kB 0.16 kB
oss-stable/react-server-dom-turbopack/server.node.js +∞% 0.00 kB 0.26 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/server.node.unbundled.js +∞% 0.00 kB 0.28 kB +∞% 0.00 kB 0.17 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.development.js +∞% 0.00 kB 56.97 kB +∞% 0.00 kB 13.26 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-client.browser.production.min.js +∞% 0.00 kB 10.68 kB +∞% 0.00 kB 4.15 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.development.js +∞% 0.00 kB 104.45 kB +∞% 0.00 kB 24.25 kB
oss-stable/react-server-dom-turbopack/umd/react-server-dom-turbopack-server.browser.production.min.js +∞% 0.00 kB 25.48 kB +∞% 0.00 kB 8.71 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-plugin.js +33.15% 4.62 kB 6.15 kB +35.88% 2.03 kB 2.76 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-client.production.min.js +4.55% 0.90 kB 0.94 kB +2.57% 0.51 kB 0.52 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.99% 55.57 kB 57.78 kB +4.92% 13.60 kB 14.27 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.99% 55.57 kB 57.78 kB +4.92% 13.60 kB 14.27 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.85% 56.29 kB 58.46 kB +4.75% 13.75 kB 14.40 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.85% 56.29 kB 58.46 kB +4.75% 13.75 kB 14.40 kB
oss-experimental/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable-semver/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable/react-noop-renderer/cjs/react-noop-renderer-flight-client.development.js +3.80% 1.84 kB 1.91 kB +3.63% 0.80 kB 0.83 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.70% 54.33 kB 56.34 kB +4.94% 13.21 kB 13.86 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.70% 54.33 kB 56.34 kB +4.94% 13.21 kB 13.86 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.development.js +3.65% 60.61 kB 62.83 kB +4.56% 14.62 kB 15.29 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js +3.54% 61.34 kB 63.50 kB +4.41% 14.77 kB 15.42 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.development.js +3.39% 59.37 kB 61.38 kB +4.55% 14.23 kB 14.87 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.61% 11.37 kB 11.67 kB +2.40% 4.41 kB 4.52 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.61% 11.37 kB 11.67 kB +2.40% 4.41 kB 4.52 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.61% 10.65 kB 10.92 kB +2.72% 4.11 kB 4.22 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.61% 10.65 kB 10.92 kB +2.72% 4.11 kB 4.22 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.61% 11.05 kB 11.34 kB +2.85% 4.28 kB 4.40 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.61% 11.05 kB 11.34 kB +2.85% 4.28 kB 4.40 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.51% 53.04 kB 54.38 kB +2.96% 12.88 kB 13.27 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.51% 53.04 kB 54.38 kB +2.96% 12.88 kB 13.27 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.unbundled.production.min.js +2.34% 12.38 kB 12.67 kB +2.56% 4.65 kB 4.77 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.node.production.min.js +2.34% 12.70 kB 13.00 kB +2.21% 4.79 kB 4.90 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.33% 52.83 kB 54.07 kB +3.10% 12.83 kB 13.22 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.33% 52.83 kB 54.07 kB +3.10% 12.83 kB 13.22 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.production.min.js +2.32% 11.98 kB 12.25 kB +2.34% 4.49 kB 4.60 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.31% 56.22 kB 57.52 kB +3.25% 13.03 kB 13.45 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.31% 56.22 kB 57.52 kB +3.25% 13.03 kB 13.45 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.29% 11.63 kB 11.90 kB +2.38% 4.50 kB 4.61 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.29% 11.63 kB 11.90 kB +2.38% 4.50 kB 4.61 kB
oss-experimental/react-server-dom-esm/cjs/react-server-dom-esm-client.node.development.js +2.29% 58.09 kB 59.42 kB +2.72% 13.91 kB 14.28 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +2.13% 57.88 kB 59.11 kB +2.90% 13.82 kB 14.23 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.development.js +2.10% 61.57 kB 62.87 kB +2.94% 14.06 kB 14.47 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.production.min.js +2.06% 12.95 kB 13.22 kB +2.03% 4.88 kB 4.98 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +1.48% 10.38 kB 10.54 kB +1.06% 4.04 kB 4.09 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +1.48% 10.38 kB 10.54 kB +1.06% 4.04 kB 4.09 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +1.44% 10.65 kB 10.80 kB +0.99% 4.14 kB 4.18 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +1.44% 10.65 kB 10.80 kB +0.99% 4.14 kB 4.18 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.production.min.js +1.32% 11.70 kB 11.85 kB +0.79% 4.41 kB 4.45 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-client.browser.production.min.js +1.28% 11.96 kB 12.12 kB +0.89% 4.52 kB 4.56 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +1.17% 98.15 kB 99.30 kB +1.80% 23.63 kB 24.05 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +1.17% 98.15 kB 99.30 kB +1.80% 23.63 kB 24.05 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +1.16% 103.79 kB 104.99 kB +1.78% 24.00 kB 24.43 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +1.16% 103.79 kB 104.99 kB +1.78% 24.00 kB 24.43 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.development.js +1.12% 103.01 kB 104.16 kB +1.68% 24.52 kB 24.94 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.development.js +1.10% 108.89 kB 110.08 kB +1.67% 24.88 kB 25.29 kB
oss-stable-semver/react-client/cjs/react-client-flight.production.min.js +0.87% 9.51 kB 9.60 kB +0.94% 3.73 kB 3.76 kB
oss-stable/react-client/cjs/react-client-flight.production.min.js +0.87% 9.51 kB 9.60 kB +0.94% 3.73 kB 3.76 kB
oss-experimental/react-client/cjs/react-client-flight.production.min.js +0.78% 10.70 kB 10.78 kB +0.91% 4.05 kB 4.09 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.64% 98.56 kB 99.19 kB +1.09% 23.74 kB 24.00 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.64% 98.56 kB 99.19 kB +1.09% 23.74 kB 24.00 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.development.js +0.61% 103.42 kB 104.06 kB +1.00% 24.65 kB 24.89 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.61% 103.90 kB 104.54 kB +1.03% 24.82 kB 25.08 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.61% 103.90 kB 104.54 kB +1.03% 24.82 kB 25.08 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.node.development.js +0.58% 108.32 kB 108.95 kB +0.97% 25.56 kB 25.81 kB
oss-stable-semver/react-client/cjs/react-client-flight.development.js +0.41% 49.45 kB 49.65 kB +0.46% 12.35 kB 12.41 kB
oss-stable/react-client/cjs/react-client-flight.development.js +0.41% 49.45 kB 49.65 kB +0.46% 12.35 kB 12.41 kB
oss-stable-semver/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.41% 25.32 kB 25.42 kB +0.49% 8.62 kB 8.66 kB
oss-stable/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.41% 25.32 kB 25.42 kB +0.49% 8.62 kB 8.66 kB
oss-stable-semver/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.39% 25.50 kB 25.60 kB +0.34% 8.72 kB 8.75 kB
oss-stable/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.39% 25.50 kB 25.60 kB +0.34% 8.72 kB 8.75 kB
oss-experimental/react-server-dom-webpack/cjs/react-server-dom-webpack-server.browser.production.min.js +0.39% 26.53 kB 26.64 kB +0.45% 8.92 kB 8.96 kB
oss-experimental/react-client/cjs/react-client-flight.development.js +0.37% 54.49 kB 54.70 kB +0.40% 13.38 kB 13.43 kB
oss-experimental/react-server-dom-webpack/umd/react-server-dom-webpack-server.browser.production.min.js +0.37% 26.72 kB 26.82 kB +0.33% 9.03 kB 9.06 kB
oss-stable-semver/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.min.js +0.22% 9.68 kB 9.70 kB +0.27% 3.76 kB 3.77 kB
oss-stable/react-server-dom-esm/cjs/react-server-dom-esm-client.browser.production.min.js +0.22% 9.68 kB 9.70 kB +0.27% 3.76 kB 3.77 kB

Generated by 🚫 dangerJS against db45991

@gnoff gnoff force-pushed the preinit-imports branch 16 times, most recently from 082f23c to f9d21cf Compare May 12, 2023 21:56
@gnoff gnoff force-pushed the preinit-imports branch 4 times, most recently from a0dab99 to 04f0e2b Compare May 22, 2023 21:04
@gnoff gnoff mentioned this pull request Jun 1, 2023
@@ -37,12 +37,12 @@ export function createServerReference<A: Iterable<any>, T>(
}

export type Options = {
moduleMap?: $NonMaybeType<SSRManifest>,
bundleConfig?: $NonMaybeType<BundleConfig>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

"bundleConfig" inside an "options" is an unnecessary abstraction. The notion of a bundle config is an internal concept. The public API is just options. In other words, the Options object should just get another option added to it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I currently have chunkLoading as a required argument to the various createFrom... methods.

My thinking is that properly handling chunkLoading is so important it shouldn't be optional in the environments where it makes sense (Edge, Node). I considered defaulting it but there is no actually good default since a simple webpack config change would easily break it.

I could also infer it from webpack itself but that only works if you bundle react-server-dom-webpack which isn't necessarily what you want and it wouldn't help in Node's case

const crossOrigin = bundlerConfig.chunkLoading.crossOrigin;
const chunks = metadata[CHUNKS];
for (let i = 1; i < chunks.length; i += 2) {
preinitModulesForSSR(prefix + chunks[i], crossOrigin);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Like we discussed, this should probably move out to an explicit call from FlightClient that's not part of "resolving". Maybe it's not part of bundler config at all but maybe more tied to the DOM specific config?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed this in the latest push. The layering is a little weird because we have an opaque type for ClientReferenceMetadata in the bundler config so when FlightClient calls into some host specific function with the metadata the only file that can unwrap that is the bundler config

The layering is now
bundler config exposes a proxy method that unwraps the metadata type
destination config exposes a method that implements what we do with webpack chunks when preparing the destination (in this case preiniting)
host config exposes the host specific implementation of preinitialization

The bundler config layer is not necessary but for the opaque type and we could do something else like make a de-opaquing identity function or just type casting but this all gets flattened into a single inline call so I think it is reasonable this way

@gnoff gnoff force-pushed the preinit-imports branch 3 times, most recently from d53877d to 8d3458d Compare June 14, 2023 18:22
@gnoff gnoff force-pushed the preinit-imports branch 3 times, most recently from 856057e to e375e2b Compare August 14, 2023 20:31
@gnoff gnoff force-pushed the preinit-imports branch 2 times, most recently from 3aaa02b to dfd32bc Compare August 23, 2023 15:44
@gnoff gnoff force-pushed the preinit-imports branch 2 times, most recently from d6db457 to b3545a2 Compare August 30, 2023 04:40
…the files but it adds maintenance burden in the inlinedHostConfigs whenever things change there. Going to make these configs opaque mixed types to quiet flow since no entrypoints use the flight code
@gnoff
Copy link
Collaborator Author

gnoff commented Aug 30, 2023

closing this to start a new discussion in #27314 and #27315

@gnoff gnoff closed this Aug 30, 2023
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