Skip to content

Commit 6553474

Browse files
committed
Added FB_DEV, FB_PROD to bundle types
1 parent 34289d3 commit 6553474

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

scripts/rollup/bundles.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const bundles = [
128128
/* React DOM internals required for react-native-web (e.g., to shim native events from react-dom) */
129129
{
130130
babelOpts: babelOptsReact,
131-
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD],
131+
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD, FB_DEV, FB_PROD],
132132
config: {
133133
destDir: 'build/',
134134
globals: {
@@ -139,7 +139,8 @@ const bundles = [
139139
sourceMap: false,
140140
},
141141
entry: 'src/renderers/dom/shared/ReactDOMUnstableNativeDependenciesEntry',
142-
externals: ['react-dom', 'prop-types', 'prop-types/checkPropTypes'],
142+
externals: ['react-dom', 'ReactDOM', 'prop-types', 'prop-types/checkPropTypes'],
143+
fbEntry: 'src/renderers/dom/shared/ReactDOMUnstableNativeDependenciesEntry',
143144
hasteName: 'ReactDOMUnstableNativeDependencies',
144145
isRenderer: false,
145146
label: 'dom-unstable-native-dependencies',

scripts/rollup/results.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@
219219
"react-dom-unstable-native-dependencies.production.min.js (NODE_PROD)": {
220220
"size": 16620,
221221
"gzip": 5340
222+
},
223+
"ReactDOMUnstableNativeDependencies-dev.js (FB_DEV)": {
224+
"size": 76860,
225+
"gzip": 18942
226+
},
227+
"ReactDOMUnstableNativeDependencies-prod.js (FB_PROD)": {
228+
"size": 65759,
229+
"gzip": 15615
222230
}
223231
}
224232
}

0 commit comments

Comments
 (0)