mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
[rn] delete the legacy renderers from the sync (#34946)
Now that RN is only on the New Architecture, we can stop stop syncing the legacy React Native renderers. In this diff, I just stop syncing them. In a follow up I'll delete the code for them so only Fabric is left. This will also allow us to remove the `enableLegacyMode` feature flag.
This commit is contained in:
@@ -819,42 +819,6 @@ 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',
|
||||
// ReactNativeInternalFeatureFlags temporary until we land enableRemoveConsolePatches.
|
||||
// Needs to be done before the next RN OSS release.
|
||||
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}],
|
||||
]),
|
||||
}),
|
||||
},
|
||||
|
||||
/******* React Native Fabric *******/
|
||||
{
|
||||
bundleTypes: __EXPERIMENTAL__
|
||||
|
||||
@@ -14,6 +14,7 @@ import type {ReactNativeType} from './ReactNativeTypes';
|
||||
|
||||
let ReactNative: ReactNativeType;
|
||||
|
||||
// TODO: Delete the legacy renderer. Only ReactFabric is used now.
|
||||
if (__DEV__) {
|
||||
ReactNative = require('../implementations/ReactNativeRenderer-dev');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user