UNPKG

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