We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30178b7 commit 8b72631Copy full SHA for 8b72631
rollup.config.js
@@ -9,13 +9,14 @@ const env = process.env.NODE_ENV
9
10
const config = {
11
input: 'src/index.js',
12
- external: Object.keys(pkg.peerDependencies || {}),
+ external: Object.keys(pkg.peerDependencies || {}).concat('react-dom'),
13
output: {
14
format: 'umd',
15
name: 'ReactRedux',
16
globals: {
17
react: 'React',
18
- redux: 'Redux'
+ redux: 'Redux',
19
+ 'react-dom': 'ReactDOM'
20
}
21
},
22
plugins: [
@@ -32,7 +33,8 @@ const config = {
32
33
'node_modules/react-is/index.js': [
34
'isValidElementType',
35
'isContextConsumer'
- ]
36
+ ],
37
+ 'node_modules/react-dom/index.js': ['unstable_batchedUpdates']
38
39
})
40
]
0 commit comments