File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
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
+ export default require ( 'ReactCurrentDispatcher' ) ;
Original file line number Diff line number Diff line change @@ -218,6 +218,19 @@ const forks = Object.freeze({
218
218
}
219
219
} ,
220
220
221
+ // Similarly, we preserve an inline require to ReactCurrentDispatcher.
222
+ // See the explanation in FB version of ReactCurrentDispatcher in www:
223
+ 'react/src/ReactCurrentDispatcher' : ( bundleType , entry ) => {
224
+ switch ( bundleType ) {
225
+ case FB_WWW_DEV :
226
+ case FB_WWW_PROD :
227
+ case FB_WWW_PROFILING :
228
+ return 'react/src/forks/ReactCurrentDispatcher.www.js' ;
229
+ default :
230
+ return null ;
231
+ }
232
+ } ,
233
+
221
234
// Different wrapping/reporting for caught errors.
222
235
'shared/invokeGuardedCallbackImpl' : ( bundleType , entry ) => {
223
236
switch ( bundleType ) {
You can’t perform that action at this time.
0 commit comments