diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 9d928ee2c9..44730dc9f9 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -49,7 +49,7 @@ const bundles = [ 'prop-types', 'prop-types/checkPropTypes', ], - fbEntry: 'src/fb/ReactFBEntry', + fbEntry: 'src/isomorphic/ReactEntry', hasteName: 'React', isRenderer: false, label: 'core', diff --git a/scripts/rollup/shims/facebook-www/PooledClass.js b/scripts/rollup/shims/facebook-www/PooledClass.js deleted file mode 100644 index c93757440c..0000000000 --- a/scripts/rollup/shims/facebook-www/PooledClass.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule PooledClass - */ - -'use strict'; - -const { - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOM-fb'); - -module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.PooledClass; diff --git a/scripts/rollup/shims/facebook-www/ReactChildren.js b/scripts/rollup/shims/facebook-www/ReactChildren.js deleted file mode 100644 index 69fec72c99..0000000000 --- a/scripts/rollup/shims/facebook-www/ReactChildren.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule ReactChildren - */ - -'use strict'; - -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React'); - -// TODO: can't reexport public API because of -// mapIntoWithKeyPrefixInternal() dependency in an addon. -module.exports = - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactChildren; diff --git a/scripts/rollup/shims/facebook-www/flattenChildren.js b/scripts/rollup/shims/facebook-www/flattenChildren.js deleted file mode 100644 index a87bac8167..0000000000 --- a/scripts/rollup/shims/facebook-www/flattenChildren.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule flattenChildren - */ - -'use strict'; - -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React'); - -module.exports = - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.flattenChildren; diff --git a/scripts/rollup/shims/facebook-www/getComponentName.js b/scripts/rollup/shims/facebook-www/getComponentName.js deleted file mode 100644 index ec4d804719..0000000000 --- a/scripts/rollup/shims/facebook-www/getComponentName.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule getComponentName - */ - -'use strict'; - -const {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} = require('React'); - -module.exports = - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.getComponentName; diff --git a/scripts/rollup/shims/facebook-www/onlyChild.js b/scripts/rollup/shims/facebook-www/onlyChild.js deleted file mode 100644 index eb706ab478..0000000000 --- a/scripts/rollup/shims/facebook-www/onlyChild.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule onlyChild - */ -'use strict'; - -var {Children} = require('React'); - -module.exports = Children.only; diff --git a/src/fb/ReactFBEntry.js b/src/fb/ReactFBEntry.js deleted file mode 100644 index d583f3ad36..0000000000 --- a/src/fb/ReactFBEntry.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -'use strict'; - -var React = require('ReactEntry'); - -// Add existing internal dependencies from www codebase. -// The goal is to get rid of these with time or turn them into public APIs. -Object.assign(React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, { - ReactChildren: require('ReactChildren'), - getComponentName: require('getComponentName'), - flattenChildren: require('flattenChildren'), -}); - -module.exports = React;