mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
06fc6f2beb
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45295 When registering Babel to run RN from source, we currently call `babel/register` directly from `scripts/babel-register.js`. This has the effect of overwriting any previous registration, which causes problems in the FB monorepo because RN also loads other projects that lie outside this registration (like Metro) from source - possibly requiring different configurations. Moreover, if Metro is subsequently loaded from source, its own registration clobbers RN's. Instead, this diff runs the registration through `metro-babel-register`, which maintains a cumulative list of registration directories and applies a uniform transform. Note that this means we're not using exactly the same transform at build/publish time as for running from source - to fix that, we ought to move everything to a central `babel.config.js`, but that's a much bigger change, and this gets us close enough to unblock. Changelog: [Internal] Reviewed By: hoxyq Differential Revision: D59376984 fbshipit-source-id: 0dbb00970ac87dbe40ec8904bf51ef4b1fee5e0f |
||
---|---|---|
.. | ||
__tests__ | ||
build | ||
circleci | ||
debugger-frontend | ||
e2e | ||
monorepo | ||
release-testing | ||
releases | ||
releases-ci | ||
utils | ||
.tests.env | ||
consts.js | ||
lint-java.js | ||
npm-utils.js | ||
objc-test.sh | ||
process-podspecs.sh | ||
run-ci-javascript-tests.js | ||
scm-utils.js | ||
sync-css-layout.sh | ||
validate-ios-test-env.sh |