expose act() sigil correctly for umd builds (#16110)

after https://github.com/facebook/react/pull/16039, act was broken for umd builds. This PR fixes it.
This commit is contained in:
Sunil Pai
2019-07-11 14:56:03 +01:00
committed by GitHub
parent b7669044d9
commit 3f1dee09a4
@@ -11,12 +11,12 @@ import * as SchedulerTracing from 'scheduler/tracing';
import ReactCurrentDispatcher from '../ReactCurrentDispatcher';
import ReactCurrentOwner from '../ReactCurrentOwner';
import ReactDebugCurrentFrame from '../ReactDebugCurrentFrame';
import IsSomeRendererActing from '../IsSomeRendererActing';
const ReactSharedInternals = {
ReactCurrentDispatcher,
ReactCurrentOwner,
// used by act()
ReactShouldWarnActingUpdates: {current: false},
IsSomeRendererActing,
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
assign,
};