UNPKG

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