SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Standardize condition order so that edge-lite preferred over browser (#29877)

The export maps for react packages have to choose an order of
preference. Many runtimes use multiple conditions, for instance when
building for edge webpack also uses the browser condition which makes
sense given most edge runtimes have a web-standards based set of APIs.
However React is building the browser builds primarily for actual
browsers and sometimes have builds intended for servers that might be
browser compat. This change updates the order of conditions to
preference specific named runtimes > node > generic edge runtimes >
browser > default
J
Josh Story committed
7f3911fac01829646c5be5e1236b76555f598f36
Parent: 55fdcf8
Committed by GitHub <noreply@github.com> on 6/12/2024, 10:31:23 PM