@samitouri / QOS-React / commits / e68e95284b

Remove more isomorphic www shims (#10007)

Dan Abramov committed Jun 21, 2017 at 17:54 UTC e68e95284bd06c7407eaced9f44ea31caf1047a6
7 files changed +1 -109
scripts/rollup/bundles.js
+1 -1
@@ -49,7 +49,7 @@ const bundles = [
49 'prop-types',
50 'prop-types/checkPropTypes',
51 ],
52 - fbEntry: 'src/fb/ReactFBEntry',
52 + fbEntry: 'src/isomorphic/ReactEntry',
53 hasteName: 'React',
54 isRenderer: false,
55 label: 'core',
scripts/rollup/shims/facebook-www/PooledClass.js deleted
-18
@@ -1,18 +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 - * @providesModule PooledClass
10 - */
11 -
12 -'use strict';
13 -
14 -const {
15 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
16 -} = require('ReactDOM-fb');
17 -
18 -module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.PooledClass;
scripts/rollup/shims/facebook-www/ReactChildren.js deleted
-19
@@ -1,19 +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 - * @providesModule ReactChildren
10 - */
11 -
12 -'use strict';
13 -
14 -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React');
15 -
16 -// TODO: can't reexport public API because of
17 -// mapIntoWithKeyPrefixInternal() dependency in an addon.
18 -module.exports =
19 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactChildren;
scripts/rollup/shims/facebook-www/flattenChildren.js deleted
-17
@@ -1,17 +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 - * @providesModule flattenChildren
10 - */
11 -
12 -'use strict';
13 -
14 -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React');
15 -
16 -module.exports =
17 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.flattenChildren;
scripts/rollup/shims/facebook-www/getComponentName.js deleted
-17
@@ -1,17 +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 - * @providesModule getComponentName
10 - */
11 -
12 -'use strict';
13 -
14 -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React');
15 -
16 -module.exports =
17 - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getComponentName;
scripts/rollup/shims/facebook-www/onlyChild.js deleted
-15
@@ -1,15 +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 - * @providesModule onlyChild
10 - */
11 -'use strict';
12 -
13 -var {Children} = require('React');
14 -
15 -module.exports = Children.only;
src/fb/ReactFBEntry.js deleted
-22
@@ -1,22 +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 React = require('ReactEntry');
13 -
14 -// Add existing internal dependencies from www codebase.
15 -// The goal is to get rid of these with time or turn them into public APIs.
16 -Object.assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
17 - ReactChildren: require('ReactChildren'),
18 - getComponentName: require('getComponentName'),
19 - flattenChildren: require('flattenChildren'),
20 -});
21 -
22 -module.exports = React;