The 'transform-object-assign-require.js' plugin replaces usage of Object.assign with require('object-assign'). But it needs to make sure the current file is not 'object-assign' itself. Otherwise a circular dependency will be introduced.
Add back React.__spread and make it warn (cherry picked from commit 516c1d809e)
516c1d809e