Skip to content

Commit

Permalink
Fix UMD Builds (ReactSharedInternals)
Browse files Browse the repository at this point in the history
ReactCurrentBatchConfig.suspense does not exist in ReactSharedInternals.umd. This PR adds it.
  • Loading branch information
lunaruan authored Mar 18, 2020
1 parent 7d466bc commit aae83a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/forks/ReactSharedInternals.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ import ReactCurrentDispatcher from '../ReactCurrentDispatcher';
import ReactCurrentOwner from '../ReactCurrentOwner';
import ReactDebugCurrentFrame from '../ReactDebugCurrentFrame';
import IsSomeRendererActing from '../IsSomeRendererActing';
import ReactCurrentBatchConfig from '../ReactCurrentBatchConfig';

const ReactSharedInternals = {
ReactCurrentDispatcher,
ReactCurrentOwner,
IsSomeRendererActing,
ReactCurrentBatchConfig,
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
assign,
};
Expand Down

0 comments on commit aae83a4

Please sign in to comment.