Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 74b54e1

Browse files
authored
Merge pull request #31 from benox3/umd
Fix UMD build by changing external declaration of shallowCompare
2 parents 01232e8 + dd3fd59 commit 74b54e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import Pic from './common/Pic';
22

3-
export default Pic;
3+
module.exports = Pic;

webpack.config.umd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config = {
3030
commonjs: 'react'
3131
},
3232
'react-addons-shallow-compare': {
33-
root: 'React.addons.shallowCompare',
33+
root: ['React', 'addons', 'shallowCompare'],
3434
amd: 'react-addons-shallow-compare',
3535
commonjs2: 'react-addons-shallow-compare',
3636
commonjs: 'react-addons-shallow-compare'

0 commit comments

Comments
 (0)