react/scripts/rollup
Sebastian Markbåge 58eedbb024
Check in a forked version of object-assign only for UMD builds (#18180)
* Check in a forked version of object-assign

This one uses ES modules so that we can inline it into UMD builds.

We could wait for object-assign to make an ESM export but we're going to
remove this dependency and assume global polyfills in the next version
anyway. However, we'd have to figure out how to keep the copyright header
and it'll get counted in terms of byte size (even if other tooling removes
it).

A lot of headache when we have our own implementation anyway. So I'll just
use that.

Ours is not resilient to checking certain browser bugs but those browsers
are mostly unused anyway. (Even FB breaks on them presumably.)

We also don't need to be resilient to Symbols since the way React uses it
we shouldn't need to copy symbols

* Don't transpile Object.assign to object-assign in object-assign

The polyfill needs to be able to feature detect Object.assign.
2020-02-28 11:14:09 -08:00
..
plugins Update Rollup version to 1.19.4 and fix breaking changes (#15037) 2020-02-20 22:09:30 +00:00
shims [Native] Delete NativeComponent and NativeMethodsMixin (#18036) 2020-02-13 15:09:25 -08:00
validate Update Rollup version to 1.19.4 and fix breaking changes (#15037) 2020-02-20 22:09:30 +00:00
build.js Export React as Named Exports instead of CommonJS (#18106) 2020-02-25 13:54:27 -08:00
bundles.js Remove Node shallow builds (#18157) 2020-02-27 14:11:40 -08:00
consolidateBundleSizes.js Fix sizebot (#15771) 2019-05-29 21:30:16 -07:00
forks.js Check in a forked version of object-assign only for UMD builds (#18180) 2020-02-28 11:14:09 -08:00
modules.js make testing builds for React/ReactDOM (#17915) 2020-02-03 23:31:31 +00:00
packaging.js Bump Prettier (#17811) 2020-01-09 13:54:11 +00:00
stats.js Fix sizebot (#15771) 2019-05-29 21:30:16 -07:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Refactor the build scripts (#11787) 2017-12-06 20:11:32 +00:00
wrappers.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00