Skip to content

Commit

Permalink
Added FB_DEV, FB_PROD to bundle types
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoo committed Jul 11, 2017
1 parent 34289d3 commit 6553474
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const bundles = [
/* React DOM internals required for react-native-web (e.g., to shim native events from react-dom) */
{
babelOpts: babelOptsReact,
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD],
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD, FB_DEV, FB_PROD],
config: {
destDir: 'build/',
globals: {
Expand All @@ -139,7 +139,8 @@ const bundles = [
sourceMap: false,
},
entry: 'src/renderers/dom/shared/ReactDOMUnstableNativeDependenciesEntry',
externals: ['react-dom', 'prop-types', 'prop-types/checkPropTypes'],
externals: ['react-dom', 'ReactDOM', 'prop-types', 'prop-types/checkPropTypes'],
fbEntry: 'src/renderers/dom/shared/ReactDOMUnstableNativeDependenciesEntry',
hasteName: 'ReactDOMUnstableNativeDependencies',
isRenderer: false,
label: 'dom-unstable-native-dependencies',
Expand Down
8 changes: 8 additions & 0 deletions scripts/rollup/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@
"react-dom-unstable-native-dependencies.production.min.js (NODE_PROD)": {
"size": 16620,
"gzip": 5340
},
"ReactDOMUnstableNativeDependencies-dev.js (FB_DEV)": {
"size": 76860,
"gzip": 18942
},
"ReactDOMUnstableNativeDependencies-prod.js (FB_PROD)": {
"size": 65759,
"gzip": 15615
}
}
}

0 comments on commit 6553474

Please sign in to comment.