mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
Backs out the 2 related commits: -f8f6e1a21a-6c0f37f94bSince I only realized when syncing that we need the version of `react` and the legacy renderer to match. While I investigate if there's anything we can do to work around that while preserving the legacy renderer, this unblocks the sync.
This commit is contained in:
@@ -137,6 +137,7 @@ jobs:
|
||||
# Delete OSS renderer. OSS renderer is synced through internal script.
|
||||
RENDERER_FOLDER=$BASE_FOLDER/react-native-github/Libraries/Renderer/implementations/
|
||||
rm $RENDERER_FOLDER/ReactFabric-{dev,prod,profiling}.js
|
||||
rm $RENDERER_FOLDER/ReactNativeRenderer-{dev,prod,profiling}.js
|
||||
|
||||
# Move React Native version file
|
||||
mv build/facebook-react-native/VERSION_NATIVE_FB ./compiled-rn/VERSION_NATIVE_FB
|
||||
|
||||
@@ -696,6 +696,40 @@ const bundles = [
|
||||
}),
|
||||
},
|
||||
|
||||
/******* React Native *******/
|
||||
{
|
||||
bundleTypes: __EXPERIMENTAL__
|
||||
? []
|
||||
: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
|
||||
moduleType: RENDERER,
|
||||
entry: 'react-native-renderer',
|
||||
global: 'ReactNativeRenderer',
|
||||
externals: ['react-native', 'ReactNativeInternalFeatureFlags'],
|
||||
minifyWithProdErrorCodes: false,
|
||||
wrapWithModuleBoundaries: true,
|
||||
babel: opts =>
|
||||
Object.assign({}, opts, {
|
||||
plugins: opts.plugins.concat([
|
||||
[require.resolve('@babel/plugin-transform-classes'), {loose: true}],
|
||||
]),
|
||||
}),
|
||||
},
|
||||
{
|
||||
bundleTypes: [RN_OSS_DEV, RN_OSS_PROD, RN_OSS_PROFILING],
|
||||
moduleType: RENDERER,
|
||||
entry: 'react-native-renderer',
|
||||
global: 'ReactNativeRenderer',
|
||||
externals: ['react-native'],
|
||||
minifyWithProdErrorCodes: false,
|
||||
wrapWithModuleBoundaries: true,
|
||||
babel: opts =>
|
||||
Object.assign({}, opts, {
|
||||
plugins: opts.plugins.concat([
|
||||
[require.resolve('@babel/plugin-transform-classes'), {loose: true}],
|
||||
]),
|
||||
}),
|
||||
},
|
||||
|
||||
/******* React Native Fabric *******/
|
||||
{
|
||||
bundleTypes: __EXPERIMENTAL__
|
||||
|
||||
Reference in New Issue
Block a user