Skip to content

Commit

Permalink
Add RN_FB bundles for react-is (#23101)
Browse files Browse the repository at this point in the history
* Add RN_FB bundles for react-is

* Update packaging.js

* Add ReactNativeInternalFeatureFlags to externals
  • Loading branch information
motiz88 authored Jan 12, 2022
1 parent a87adef commit c09596c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,13 +733,16 @@ const bundles = [
FB_WWW_PROD,
UMD_DEV,
UMD_PROD,
RN_FB_DEV,
RN_FB_PROD,
RN_FB_PROFILING,
],
moduleType: ISOMORPHIC,
entry: 'react-is',
global: 'ReactIs',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: false,
externals: [],
externals: ['ReactNativeInternalFeatureFlags'],
},

/******* React Debug Tools *******/
Expand Down
1 change: 1 addition & 0 deletions scripts/rollup/packaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function getBundleOutputPath(bundleType, filename, packageName) {
switch (packageName) {
case 'scheduler':
case 'react':
case 'react-is':
case 'react-test-renderer':
return `build/facebook-react-native/${packageName}/cjs/${filename}`;
case 'react-native-renderer':
Expand Down

0 comments on commit c09596c

Please sign in to comment.