You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #19634, DevTools packages' yarn build commands are failing with the following error when run with the latest versions of Node 12 and Node 14:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved in /home/e-liang/react/node_modules/@babel/helper-compilation-targets/package.json
In babel/babel#11216 (comment), Babel's maintainer's recommends that all @babel/* packages should be updated to fix the error. This PR does that, upgrading all @babel/* packages across the repository, excluding fixtures.
With latest Node 12 (v12.18.3) (yarn build commands here fail on master):
yarn
yarn build-for-devtools
cd packages/react-devtools-core && rm -rf dist && yarn build
cd ../react-devtools-extensions && rm -rf build && yarn build
cd ../react-devtools-inline && rm -rf dist && yarn build
cd ../react-devtools-shell && rm -rf dist && yarn build
Diff build artifacts to ensure that core packages are not broken
git checkout scheduling-profiler-import # Since the commit in this PR is cherry picked from that PR (#19634), the diff should be identical
yarn
RELEASE_CHANNEL=experimental yarn build
cp -r build ~/react-build-spi-experimental
RELEASE_CHANNEL=stable yarn build
cp -r build ~/react-build-spi-stable
git checkout master
yarn
RELEASE_CHANNEL=experimental yarn build
cp -r build ~/react-build-master-experimental
RELEASE_CHANNEL=stable yarn build
cp -r build ~/react-build-master-stable
cd~
diff -ENwbur react-build-master-experimental react-build-spi-experimental > experimental.diff
diff -ENwbur react-build-master-stable react-build-spi-stable > stable.diff
# Both diff files uploaded to https://gist.github.com/taneliang/c193548a1d5f07f083486ce859c2edf1
There are about 2300 lines of changes in the main React packages, but I didn't notice anything concerning. I've uploaded the diffs here: https://gist.github.com/taneliang/c193548a1d5f07f083486ce859c2edf1. Most of the differences seem to be one of the following:
Removal of an empty object when calling Object.assign, e.g.:
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me but I am going to run the PR by the rest of the team before landing, to make sure there are no concerns about changing deps at the moment.
I haven't heard any concerns about changing deps, and the delta between the build artifacts looks like it's strictly an improvement (although minor) so let's go!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
As discussed in #19634, DevTools packages'
yarn buildcommands are failing with the following error when run with the latest versions of Node 12 and Node 14:In babel/babel#11216 (comment), Babel's maintainer's recommends that all
@babel/*packages should be updated to fix the error. This PR does that, upgrading all@babel/*packages across the repository, excluding fixtures.The commit in this PR is cherry picked from
a633ac3(#19634) as @bvaughn requested.Test Plan
Gathered from discussions in #19634.
Green CI, and:
Build DevTools packages
With latest Node 12 (v12.18.3) (
yarn buildcommands here fail onmaster):Diff build artifacts to ensure that core packages are not broken
There are about 2300 lines of changes in the main React packages, but I didn't notice anything concerning. I've uploaded the diffs here: https://gist.github.com/taneliang/c193548a1d5f07f083486ce859c2edf1. Most of the differences seem to be one of the following:
Object.assign, e.g.:- return Object.assign({}, parentContext, {}, childContext); + return Object.assign({}, parentContext, childContext);