dillon1000/react

Commit

[UMD] Remove umd builds (#28735)

In React 19 React will finally stop publishing UMD builds. This is
motivated primarily by the lack of use of UMD format and the added
complexity of maintaining build infra for these releases. Additionally
with ESM becoming more prevalent in browsers and services like esm.sh
which can host React as an ESM module there are other options for doing
script tag based react loading.

This PR removes all the UMD build configs and forks.

There are some fixtures that still have references to UMD builds however
many of them already do not work (for instance they are using legacy
features like ReactDOM.render) and rather than block the removal on
these fixtures being brought up to date we'll just move forward and fix
or removes fixtures as necessary in the future.
Browse files
Changed paths42 files
First-parent comparison
M .eslintrc.js ModifiedM fixtures/dom/README.md ModifiedM fixtures/dom/package.json ModifiedM fixtures/dom/src/index.js ModifiedM fixtures/dom/src/react-loader.js ModifiedD fixtures/fiber-triangle/index.html DeletedM fixtures/fizz-ssr-browser/index.html ModifiedM fixtures/stacks/BabelClasses-compiled.js ModifiedM fixtures/stacks/BabelClasses-compiled.js.map ModifiedM fixtures/stacks/BabelClasses.js ModifiedM fixtures/stacks/Components.js ModifiedM fixtures/stacks/Example.js ModifiedM fixtures/stacks/index.html ModifiedA fixtures/stacks/package.json AddedA fixtures/stacks/yarn.lock AddedM netlify.toml ModifiedM package.json ModifiedM packages/react-art/package.json ModifiedM packages/react-cache/package.json ModifiedM packages/react-dom/client.js ModifiedM packages/react-dom/package.json ModifiedM packages/react-dom/src/client/ReactDOM.js ModifiedM packages/react-is/package.json ModifiedM packages/react-refresh/package.json ModifiedM packages/react-server-dom-turbopack/package.json ModifiedM packages/react-server-dom-webpack/package.json ModifiedM packages/react-test-renderer/package.json ModifiedM packages/react/package.json ModifiedD packages/react/src/forks/ReactSharedInternalsClient.umd.js DeletedM packages/scheduler/package.json ModifiedD packages/scheduler/src/__tests__/SchedulerUMDBundle-test.internal.js DeletedD packages/shared/forks/Scheduler.umd.js DeletedM scripts/flow/environment.js ModifiedM scripts/jest/setupEnvironment.js ModifiedM scripts/rollup/build.js ModifiedM scripts/rollup/bundles.js ModifiedM scripts/rollup/forks.js ModifiedM scripts/rollup/modules.js ModifiedM scripts/rollup/packaging.js ModifiedD scripts/rollup/validate/eslintrc.umd.js DeletedM scripts/rollup/validate/index.js ModifiedM scripts/rollup/wrappers.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…