Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Sep 17, 2025

Stacked on #34507

The file is stored in packages/react-devtools-extensions/build/webpack-stats*.json.
The filename includes feature flag target and browser.
Creating the stats is cheap (after: 11.498 s ± 0.130 s, before: 10.903 s ± 0.209 s) so we're always doing it for now.

In CI, we'll persist the stats for download in GH artifacts (existing react-devtools and react-devtools-*-metadata in build-and-test).
The artifact in the regression test job used to contain a tarball but since we switched to GitHub Actions,
we no longer need to do that considering GH Actions already creates a zip of the
artifacts.

The backend will get stats once we merge the Webpack configs.

Test plan

@meta-cla meta-cla bot added the CLA Signed label Sep 17, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Sep 17, 2025
@react-sizebot
Copy link

react-sizebot commented Sep 17, 2025

Comparing: 16df13b...2042d7a

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 = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 534.32 kB 534.32 kB = 94.32 kB 94.32 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 = 663.64 kB 663.64 kB = 117.01 kB 117.01 kB
facebook-www/ReactDOM-prod.classic.js = 687.59 kB 687.59 kB = 121.04 kB 121.04 kB
facebook-www/ReactDOM-prod.modern.js = 678.02 kB 678.02 kB = 119.39 kB 119.39 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 2042d7a

@eps1lon eps1lon force-pushed the sebbie/09-17-_devtools_store_webpack_stats_when_building_extensions branch 2 times, most recently from bcbbf8a to 06d2c8b Compare September 17, 2025 09:28
@eps1lon eps1lon requested a review from hoxyq September 17, 2025 09:32
@eps1lon eps1lon marked this pull request as ready for review September 17, 2025 09:33
The file is stored in `packages/react-devtools-extensions/build/webpack-stats*.json`.
The filename includes feature flag target and browser.
Creating the stats is cheap so we're always doing it for now.

In CI, we'll persist the stats for download (`react-devtools`) artifact.
The artifact used to contain a tarball but since we switched to GitHub Actions,
we no longer do that considering GH Actions already creates a zip of the
artifacts.
@eps1lon eps1lon force-pushed the sebbie/09-17-_devtools_store_webpack_stats_when_building_extensions branch from 06d2c8b to 2042d7a Compare September 17, 2025 12:55
@eps1lon eps1lon merged commit 6a4c8f5 into facebook:main Sep 17, 2025
241 checks passed
@eps1lon eps1lon deleted the sebbie/09-17-_devtools_store_webpack_stats_when_building_extensions branch September 17, 2025 13:03
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.

3 participants