From 6250462bed19c9f18a8cf3c2b5fcaf9aba1df72b Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 7 Jan 2020 13:05:36 -0800 Subject: [PATCH] Renamed "ReactDOM-fb" imports to "ReactDOM" in www shims (#17797) * Renamed "ReactDOM-fb" imports to "ReactDOM" in www shims * Removed ReactDOMComponentTree_DO_NOT_USE.js --- .../ReactBrowserEventEmitter_DO_NOT_USE.js | 2 +- .../ReactDOMComponentTree_DO_NOT_USE.js | 15 --------------- .../facebook-www/ReactInstanceMap_DO_NOT_USE.js | 2 +- scripts/rollup/shims/facebook-www/findDOMNode.js | 2 +- .../renderSubtreeIntoContainer_DO_NOT_USE.js | 2 +- 5 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 scripts/rollup/shims/facebook-www/ReactDOMComponentTree_DO_NOT_USE.js diff --git a/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter_DO_NOT_USE.js b/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter_DO_NOT_USE.js index 7eaab22a75..350d091df3 100644 --- a/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter_DO_NOT_USE.js +++ b/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter_DO_NOT_USE.js @@ -9,7 +9,7 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOM-fb'); +} = require('ReactDOM'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactBrowserEventEmitter; diff --git a/scripts/rollup/shims/facebook-www/ReactDOMComponentTree_DO_NOT_USE.js b/scripts/rollup/shims/facebook-www/ReactDOMComponentTree_DO_NOT_USE.js deleted file mode 100644 index 1df865a731..0000000000 --- a/scripts/rollup/shims/facebook-www/ReactDOMComponentTree_DO_NOT_USE.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'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.ReactDOMComponentTree; diff --git a/scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js b/scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js index be387b1bfa..1aa0186473 100644 --- a/scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js +++ b/scripts/rollup/shims/facebook-www/ReactInstanceMap_DO_NOT_USE.js @@ -9,7 +9,7 @@ const { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, -} = require('ReactDOM-fb'); +} = require('ReactDOM'); module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactInstanceMap; diff --git a/scripts/rollup/shims/facebook-www/findDOMNode.js b/scripts/rollup/shims/facebook-www/findDOMNode.js index a90bd0aaef..f10e497bc7 100644 --- a/scripts/rollup/shims/facebook-www/findDOMNode.js +++ b/scripts/rollup/shims/facebook-www/findDOMNode.js @@ -10,6 +10,6 @@ 'use strict'; -const {findDOMNode} = require('ReactDOM-fb'); +const {findDOMNode} = require('ReactDOM'); module.exports = findDOMNode; diff --git a/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer_DO_NOT_USE.js b/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer_DO_NOT_USE.js index 43e37c17bd..3434fe349c 100644 --- a/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer_DO_NOT_USE.js +++ b/scripts/rollup/shims/facebook-www/renderSubtreeIntoContainer_DO_NOT_USE.js @@ -7,6 +7,6 @@ 'use strict'; -const ReactDOM = require('ReactDOM-fb'); +const ReactDOM = require('ReactDOM'); module.exports = ReactDOM.unstable_renderSubtreeIntoContainer;