mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Our module rewrite whitelist needs to ignore providesModule files that are going to be required from the global React Native environment. We also need to add ReactDOM to providesModule since we removed it from React Native.
17 lines
441 B
JavaScript
17 lines
441 B
JavaScript
/**
|
|
* @providesModule ReactDOM
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var ReactUpdates = require('./ReactUpdates');
|
|
|
|
// TODO: In React Native, ReactTestUtils depends on ./ReactDOM (for
|
|
// renderIntoDocument, which should never be called) and Relay depends on
|
|
// react-dom (for batching). Once those are fixed, nothing in RN should import
|
|
// this module and this file can go away.
|
|
|
|
module.exports = {
|
|
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
|
|
};
|