Skip to content

Commit 8b72631

Browse files
committed
Mark ReactDOM as global in UMD builds
Matches state as of v7.0.0-alpha.2
1 parent 30178b7 commit 8b72631

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rollup.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ const env = process.env.NODE_ENV
99

1010
const config = {
1111
input: 'src/index.js',
12-
external: Object.keys(pkg.peerDependencies || {}),
12+
external: Object.keys(pkg.peerDependencies || {}).concat('react-dom'),
1313
output: {
1414
format: 'umd',
1515
name: 'ReactRedux',
1616
globals: {
1717
react: 'React',
18-
redux: 'Redux'
18+
redux: 'Redux',
19+
'react-dom': 'ReactDOM'
1920
}
2021
},
2122
plugins: [
@@ -32,7 +33,8 @@ const config = {
3233
'node_modules/react-is/index.js': [
3334
'isValidElementType',
3435
'isContextConsumer'
35-
]
36+
],
37+
'node_modules/react-dom/index.js': ['unstable_batchedUpdates']
3638
}
3739
})
3840
]

0 commit comments

Comments
 (0)