Skip to content

Commit

Permalink
Build react-dom/* dependencies for fbsource
Browse files Browse the repository at this point in the history
  • Loading branch information
yungsters committed Aug 15, 2024
1 parent 96dddd5 commit d109b27
Showing 1 changed file with 49 additions and 9 deletions.
58 changes: 49 additions & 9 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,15 @@ const bundles = [

/******* React DOM *******/
{
bundleTypes: [
NODE_DEV,
NODE_PROD,
RN_FB_DEV,
RN_FB_PROD,
RN_FB_PROFILING,
],
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: RENDERER,
entry: 'react-dom',
global: 'ReactDOM',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: true,
externals: ['react', 'ReactNativeInternalFeatureFlags'],
externals: ['react'],
},

/******* React DOM Client *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
Expand All @@ -210,7 +205,8 @@ const bundles = [
wrapWithModuleBoundaries: true,
externals: ['react', 'react-dom'],
},
/******* React DOM FB *******/

/******* React DOM (www) *******/
{
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, FB_WWW_PROFILING],
moduleType: RENDERER,
Expand All @@ -221,6 +217,50 @@ const bundles = [
externals: ['react'],
},

/******* React DOM (fbsource) *******/
{
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
moduleType: RENDERER,
entry: 'react-dom',
global: 'ReactDOM',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: false,
externals: ['react', 'ReactNativeInternalFeatureFlags'],
},

/******* React DOM Client (fbsource) *******/
{
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
moduleType: RENDERER,
entry: 'react-dom/client',
global: 'ReactDOMClient',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: false,
externals: ['react', 'react-dom', 'ReactNativeInternalFeatureFlags'],
},

/******* React DOM Profiling (fbsource) *******/
{
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
moduleType: RENDERER,
entry: 'react-dom/profiling',
global: 'ReactDOMProfiling',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: true,
externals: ['react', 'react-dom', 'ReactNativeInternalFeatureFlags'],
},

/******* React DOM Test Utils (fbsource) *******/
{
moduleType: RENDERER_UTILS,
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
entry: 'react-dom/test-utils',
global: 'ReactDOMTestUtils',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'react-dom', 'ReactNativeInternalFeatureFlags'],
},

/******* React DOM React Server *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
Expand Down

0 comments on commit d109b27

Please sign in to comment.