@samitouri / QOS-React / commits / 2b44565fca

Don't build some stack bundles (#9812)

* Don't build ReactDOMStack and ReactARTStack bundles * Regenerate results.json

Dan Abramov committed May 30, 2017 at 15:49 UTC 2b44565fca3f78dd825733f218858f0c178a7dd5
3 files changed +4 -118
scripts/rollup/bundles.js
-62
@@ -65,33 +65,6 @@ const bundles = [
65 },
66
67 /******* React DOM *******/
68 - {
69 - babelOpts: babelOptsReact,
70 - bundleTypes: [FB_DEV, FB_PROD],
71 - config: {
72 - destDir: 'build/',
73 - globals: {
74 - react: 'React',
75 - },
76 - moduleName: 'ReactDOM',
77 - sourceMap: false,
78 - },
79 - entry: 'src/renderers/dom/ReactDOM.js',
80 - externals: ['prop-types', 'prop-types/checkPropTypes'],
81 - fbEntry: 'src/fb/ReactDOMFBEntry.js',
82 - hasteName: 'ReactDOMStack',
83 - isRenderer: true,
84 - label: 'dom-stack',
85 - manglePropertiesOnProd: false,
86 - name: 'react-dom-stack',
87 - paths: [
88 - 'src/renderers/dom/**/*.js',
89 - 'src/renderers/shared/**/*.js',
90 -
91 - 'src/ReactVersion.js',
92 - 'src/shared/**/*.js',
93 - ],
94 - },
68 {
69 babelOpts: babelOptsReact,
70 bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD, FB_DEV, FB_PROD],
@@ -209,41 +182,6 @@ const bundles = [
182 },
183
184 /******* React ART *******/
212 - {
213 - babelOpts: babelOptsReactART,
214 - // TODO: we merge react-art repo into this repo so the NODE_DEV and NODE_PROD
215 - // builds sync up to the building of the package directories
216 - bundleTypes: [FB_DEV, FB_PROD],
217 - config: {
218 - destDir: 'build/',
219 - globals: {
220 - react: 'React',
221 - },
222 - moduleName: 'ReactART',
223 - sourceMap: false,
224 - },
225 - entry: 'src/renderers/art/ReactARTStack.js',
226 - externals: [
227 - 'art/modes/current',
228 - 'art/modes/fast-noSideEffects',
229 - 'art/core/transform',
230 - 'prop-types/checkPropTypes',
231 - 'react-dom',
232 - ],
233 - fbEntry: 'src/renderers/art/ReactARTStack.js',
234 - hasteName: 'ReactARTStack',
235 - isRenderer: true,
236 - label: 'art-stack',
237 - manglePropertiesOnProd: false,
238 - name: 'react-art',
239 - paths: [
240 - 'src/renderers/art/**/*.js',
241 - 'src/renderers/shared/**/*.js',
242 -
243 - 'src/ReactVersion.js',
244 - 'src/shared/**/*.js',
245 - ],
246 - },
185 {
186 babelOpts: babelOptsReactART,
187 // TODO: we merge react-art repo into this repo so the NODE_DEV and NODE_PROD
scripts/rollup/results.json
+4 -4
@@ -165,12 +165,12 @@
165 "gzip": 85249
166 },
167 "ReactNativeStack-dev.js (RN_DEV)": {
168 - "size": 182305,
169 - "gzip": 35469
168 + "size": 182421,
169 + "gzip": 35496
170 },
171 "ReactNativeStack-prod.js (RN_PROD)": {
172 - "size": 134072,
173 - "gzip": 25710
172 + "size": 134188,
173 + "gzip": 25741
174 },
175 "ReactNativeFiber-dev.js (RN_DEV)": {
176 "size": 278278,
src/fb/ReactDOMFBEntry.js deleted
-52
@@ -1,52 +0,0 @@
1 -/**
2 - * Copyright 2013-present, Facebook, Inc.
3 - * All rights reserved.
4 - *
5 - * This source code is licensed under the BSD-style license found in the
6 - * LICENSE file in the root directory of this source tree. An additional grant
7 - * of patent rights can be found in the PATENTS file in the same directory.
8 - */
9 -
10 -'use strict';
11 -
12 -var ReactDOM = require('ReactDOM');
13 -
14 -Object.assign(ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
15 - // These should be easy to copy into react_contrib and remove from here:
16 - adler32: require('adler32'),
17 - getVendorPrefixedEventName: require('getVendorPrefixedEventName'),
18 - getEventCharCode: require('getEventCharCode'),
19 - getEventKey: require('getEventKey'),
20 - getEventTarget: require('getEventTarget'),
21 - isEventSupported: require('isEventSupported'),
22 - setInnerHTML: require('setInnerHTML'),
23 - setTextContent: require('setTextContent'),
24 - PooledClass: require('PooledClass'),
25 - ReactDOMSelection: require('ReactDOMSelection'),
26 - ReactInputSelection: require('ReactInputSelection'),
27 - // These are mostly used in incorrect Flow typings and are codemoddable:
28 - SyntheticEvent: require('SyntheticEvent'),
29 - SyntheticKeyboardEvent: require('SyntheticKeyboardEvent'),
30 - SyntheticMouseEvent: require('SyntheticMouseEvent'),
31 - // These are real internal dependencies that are trickier to remove:
32 - ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
33 - ReactErrorUtils: require('ReactErrorUtils'),
34 - ReactDOMComponentTree: require('ReactDOMComponentTree'),
35 - ReactInstanceMap: require('ReactInstanceMap'),
36 - // This is used for ajaxify on www:
37 - DOMProperty: require('DOMProperty'),
38 - // These are dependencies of TapEventPlugin:
39 - EventPluginUtils: require('EventPluginUtils'),
40 - EventPropagators: require('EventPropagators'),
41 - SyntheticUIEvent: require('SyntheticUIEvent'),
42 -});
43 -
44 -if (__DEV__) {
45 - Object.assign(ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
46 - // ReactPerf currently only works with the DOM renderer
47 - // so we expose it here, but only in DEV mode.
48 - ReactPerf: require('ReactPerf'),
49 - });
50 -}
51 -
52 -module.exports = ReactDOM;