UNPKG

983 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 React = require('react/lib/React');
12var ReactDOM = require('./ReactDOM');
13
14var ReactDOMUMDEntry = ReactDOM;
15
16if (process.env.NODE_ENV !== 'production') {
17 ReactDOMUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
18 // ReactPerf and ReactTestUtils currently only work with the DOM renderer
19 // so we expose them from here, but only in DEV mode.
20 ReactPerf: require('./ReactPerf'),
21 ReactTestUtils: require('./ReactTestUtils')
22 };
23}
24
25// Inject ReactDOM into React for the addons UMD build that depends on ReactDOM (TransitionGroup).
26// We can remove this after we deprecate and remove the addons UMD build.
27if (React.addons) {
28 React.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactDOMUMDEntry;
29}
30
31module.exports = ReactDOMUMDEntry;
\No newline at end of file