dillon1000/react

Commit

React `version` field should match package.json (#24445)

The `version` field exported by the React package currently corresponds
to the `@next` release for that build. This updates the build script
to output the same version that is used in the package.json file.

It works by doing a find-and-replace of the React version after the
build has completed. This is a bit weird but it saves us from having
to build the `@next` and `@latest` releases separately; they are
identical except for the version numbers.
Browse files
Changed paths2 files
First-parent comparison
A packages/react/src/__tests__/ReactVersion-test.js AddedM scripts/rollup/build-all-release-channels.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…