UNPKG

1 kBJavaScriptView Raw
1/**
2 * Copyright (c) 2013-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9'use strict';
10
11var _assign = require('object-assign');
12
13var ReactWithAddons = require('./ReactWithAddons');
14
15// `version` will be added here by the React module.
16var ReactWithAddonsUMDEntry = _assign(ReactWithAddons, {
17 __SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: null, // Will be injected by ReactDOM UMD build.
18 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
19 ReactCurrentOwner: require('./ReactCurrentOwner')
20 }
21});
22
23if (process.env.NODE_ENV !== 'production') {
24 _assign(ReactWithAddonsUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
25 // ReactComponentTreeHook should not be included in production.
26 ReactComponentTreeHook: require('./ReactComponentTreeHook'),
27 getNextDebugID: require('./getNextDebugID')
28 });
29}
30
31module.exports = ReactWithAddonsUMDEntry;
\No newline at end of file