mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add missing ReactErrorUtils shim
This commit is contained in:
@@ -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;
|
||||
@@ -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:
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user