Skip to content

Conversation

@hoxyq
Copy link
Contributor

@hoxyq hoxyq commented Nov 8, 2023

Instead of #27664, we can just exclude unstable_server-external-runtime.js from having sourcemaps for now.

We should consider removing manual copying of this artifact in

# Copy unstable_server-external-runtime.js into facebook-www
mv build/oss-stable/react-dom/unstable_server-external-runtime.js \
./compiled/facebook-www/unstable_server-external-runtime.js

As described in #27664, this artifact doesn't have any effect on the hash, which is used for generating React version identifier.

@react-sizebot
Copy link

Comparing: 52d542a...4de1e44

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 = 175.32 kB 175.32 kB = 54.58 kB 54.58 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.39 kB 177.39 kB = 55.22 kB 55.22 kB
facebook-www/ReactDOM-prod.classic.js = 567.68 kB 567.68 kB = 99.95 kB 99.95 kB
facebook-www/ReactDOM-prod.modern.js = 551.53 kB 551.53 kB = 97.05 kB 97.05 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-dom/unstable_server-external-runtime.js = 3.39 kB 3.33 kB = 1.54 kB 1.49 kB
oss-stable-semver/react-dom/unstable_server-external-runtime.js = 3.39 kB 3.33 kB = 1.54 kB 1.49 kB
oss-stable/react-dom/unstable_server-external-runtime.js = 3.39 kB 3.33 kB = 1.54 kB 1.49 kB

Generated by 🚫 dangerJS against 4de1e44

@acdlite
Copy link
Collaborator

acdlite commented Nov 8, 2023

unstable_server-external-runtime.js is not a Meta-only artifact. It's undocumented but we do plan to release it to open source, too.

@hoxyq
Copy link
Contributor Author

hoxyq commented Nov 8, 2023

unstable_server-external-runtime.js is not a Meta-only artifact. It's undocumented but we do plan to release it to open source, too.

Yes, it is react-dom artifact and built in oss-* folder at first and then manually copied to Meta's bundles at the commit artifacts job.

@hoxyq hoxyq merged commit 78c71bc into facebook:main Nov 9, 2023
@hoxyq hoxyq deleted the build/exclude-browser-scripts-from-generating-sourcemaps branch November 9, 2023 16:11
github-actions bot pushed a commit that referenced this pull request Nov 9, 2023
…es (#27665)

Instead of #27664, we can just
exclude `unstable_server-external-runtime.js` from having sourcemaps for
now.

We should consider removing manual copying of this artifact in
https://github.com/facebook/react/blob/52d542ad6d410008c495084f511247f43387055f/.github/workflows/commit_artifacts.yml#L136-L138

As described in #27664, this
artifact doesn't have any effect on the `hash`, which is used for
generating React version identifier.

DiffTrain build for [78c71bc](78c71bc)
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Nov 10, 2023
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
…es (facebook#27665)

Instead of facebook#27664, we can just
exclude `unstable_server-external-runtime.js` from having sourcemaps for
now.

We should consider removing manual copying of this artifact in
https://github.com/facebook/react/blob/52d542ad6d410008c495084f511247f43387055f/.github/workflows/commit_artifacts.yml#L136-L138


As described in facebook#27664, this
artifact doesn't have any effect on the `hash`, which is used for
generating React version identifier.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
…es (#27665)

Instead of #27664, we can just
exclude `unstable_server-external-runtime.js` from having sourcemaps for
now.

We should consider removing manual copying of this artifact in
https://github.com/facebook/react/blob/52d542ad6d410008c495084f511247f43387055f/.github/workflows/commit_artifacts.yml#L136-L138

As described in #27664, this
artifact doesn't have any effect on the `hash`, which is used for
generating React version identifier.

DiffTrain build for commit 78c71bc.
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.

5 participants