UNPKG

829 BJavaScriptView 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 React = require('./React');
14
15// `version` will be added here by the React module.
16var ReactUMDEntry = _assign(React, {
17 __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
18 ReactCurrentOwner: require('./ReactCurrentOwner')
19 }
20});
21
22if (process.env.NODE_ENV !== 'production') {
23 _assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
24 // ReactComponentTreeHook should not be included in production.
25 ReactComponentTreeHook: require('./ReactComponentTreeHook'),
26 getNextDebugID: require('./getNextDebugID')
27 });
28}
29
30module.exports = ReactUMDEntry;
\No newline at end of file