-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
refactor[ci/build]: support FB_WWW_BROWSER_SCRIPT bundle type #27664
refactor[ci/build]: support FB_WWW_BROWSER_SCRIPT bundle type #27664
Conversation
if (fileName !== 'unstable_server-external-runtime.js') { | ||
fs.renameSync(filePath, filePath.replace('.js', '.classic.js')); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have access to bundle types at this point. Instead of relying on fileName
I can parse bundles array and try finding everything what has bundleType FB_WWW_BROWSER_SCRIPT
, if that seems like a better option
This would require more changes, than I've expected. Since we have only 1 artifact with Closing this in favour of #27665. |
…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.
…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)
…es (#27665) Instead of facebook/react#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/react#27664, this artifact doesn't have any effect on the `hash`, which is used for generating React version identifier. DiffTrain build for [78c71bc545bf5c0fdeedc023b69fafe05d988067](facebook/react@78c71bc)
…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.
Follow-up on #26446.
Fixes 2 issues:
unstable_server-external-runtime.js
intofacebook-www
when committing artifacts to Meta's monorepo.yarn build
: you will not getbuild/facebook-www/unstable_server-external-runtime.js
in this case.build/oss-stable/react-dom/unstable_server-external-runtime.js
is actually included intoreact-dom
npm package, we ship sourcemaps for it. We don't need sourcemaps for Meta's versions of these artifacts, though, it should be built separately with a different bundle type.unstable_server-external-runtime.js
doesn't have any effect on thehash
that is created here https://github.com/facebook/react/blob/main/scripts/rollup/build-all-release-channels.js#L165-L173 or herehttps://github.com/facebook/react/blob/main/scripts/rollup/build-all-release-channels.js#L239-L247. I can double-check this, but it probably means that if only sources of this artifact change, it won't create a new react version identifier, which is based on
hash
.