Add missing ReactErrorUtils shim

This commit is contained in:
Dan Abramov
2017-03-23 21:15:30 +00:00
parent 05bd00af2e
commit c84f4e03bc
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,19 @@
/**
* 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 ReactErrorUtils
* @flow
*/
'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.ReactErrorUtils;
+1
View File
@@ -34,6 +34,7 @@ ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
// These are real internal dependencies that are trickier to remove:
EventPluginHub: require('EventPluginHub'),
ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
ReactErrorUtils: require('ReactErrorUtils'),
ReactDOMComponentTree: require('ReactDOMComponentTree'),
ReactInstanceMap: require('react-dom/lib/ReactInstanceMap'),
// This is used for ajaxify on www:
+1
View File
@@ -33,6 +33,7 @@ ReactDOMFiber.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
// These are real internal dependencies that are trickier to remove:
EventPluginHub: require('EventPluginHub'),
ReactBrowserEventEmitter: require('ReactBrowserEventEmitter'),
ReactErrorUtils: require('ReactErrorUtils'),
ReactFiberErrorLogger: require('ReactFiberErrorLogger'),
ReactDOMComponentTree: require('ReactDOMComponentTree'),
ReactInstanceMap: require('react-dom/lib/ReactInstanceMap'),