@samitouri / QOS-React-2 / commits / 314968561b

Back out "[bundles] stop building legacy Paper renderer (#31429)" (#31437)

Backs out the 2 related commits: - https://github.com/facebook/react/commit/f8f6e1a21a1cac64cf6faf666367d641b2d8b171 - https://github.com/facebook/react/commit/6c0f37f94b020279fb5ada70facc008fccb7172e Since 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.

Jan Kassens committed Nov 6, 2024 at 09:41 UTC 314968561b547957c76c9d7be3620e38f87770d4
2 files changed +35
.github/workflows/runtime_commit_artifacts.yml
+1
@@ -137,6 +137,7 @@ jobs:
137 # Delete OSS renderer. OSS renderer is synced through internal script.
138 RENDERER_FOLDER=$BASE_FOLDER/react-native-github/Libraries/Renderer/implementations/
139 rm $RENDERER_FOLDER/ReactFabric-{dev,prod,profiling}.js
140 + rm $RENDERER_FOLDER/ReactNativeRenderer-{dev,prod,profiling}.js
141
142 # Move React Native version file
143 mv build/facebook-react-native/VERSION_NATIVE_FB ./compiled-rn/VERSION_NATIVE_FB
scripts/rollup/bundles.js
+34
@@ -696,6 +696,40 @@ const bundles = [
696 }),
697 },
698
699 + /******* React Native *******/
700 + {
701 + bundleTypes: __EXPERIMENTAL__
702 + ? []
703 + : [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
704 + moduleType: RENDERER,
705 + entry: 'react-native-renderer',
706 + global: 'ReactNativeRenderer',
707 + externals: ['react-native', 'ReactNativeInternalFeatureFlags'],
708 + minifyWithProdErrorCodes: false,
709 + wrapWithModuleBoundaries: true,
710 + babel: opts =>
711 + Object.assign({}, opts, {
712 + plugins: opts.plugins.concat([
713 + [require.resolve('@babel/plugin-transform-classes'), {loose: true}],
714 + ]),
715 + }),
716 + },
717 + {
718 + bundleTypes: [RN_OSS_DEV, RN_OSS_PROD, RN_OSS_PROFILING],
719 + moduleType: RENDERER,
720 + entry: 'react-native-renderer',
721 + global: 'ReactNativeRenderer',
722 + externals: ['react-native'],
723 + minifyWithProdErrorCodes: false,
724 + wrapWithModuleBoundaries: true,
725 + babel: opts =>
726 + Object.assign({}, opts, {
727 + plugins: opts.plugins.concat([
728 + [require.resolve('@babel/plugin-transform-classes'), {loose: true}],
729 + ]),
730 + }),
731 + },
732 +
733 /******* React Native Fabric *******/
734 {
735 bundleTypes: __EXPERIMENTAL__