diff --git a/.github/workflows/runtime_commit_artifacts.yml b/.github/workflows/runtime_commit_artifacts.yml index 37b8627be6251..7842f07ba5888 100644 --- a/.github/workflows/runtime_commit_artifacts.yml +++ b/.github/workflows/runtime_commit_artifacts.yml @@ -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 diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 300caae37c030..26a88fb00811d 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -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__