Skip to content

Commit b2c4b48

Browse files
committed
try to fixed react refs must have owner: //'react-dom': { commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: 'ReactDOM' },
1 parent 0f76cd2 commit b2c4b48

5 files changed

+12
-17
lines changed

dist/react-image-carousel.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-image-carousel.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-image-carousel.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-image-carousel.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.config.js

+3-8
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@ var config = {
6262
},
6363
plugins: plugins,
6464
externals: {
65-
'react': 'react', // Case matters here
66-
//'react-dom' : 'reactDOM', // Case matters her
67-
'react-addons-transition-group': {
68-
commonjs: 'react-addons-transition-group',
69-
commonjs2: 'react-addons-transition-group',
70-
amd: 'react-addons-transition-group',
71-
root: ['React','addons','TransitionGroup']
72-
}
65+
'react': { commonjs: 'react', commonjs2: 'react', amd: 'react', root: 'React' },
66+
'react-dom': { commonjs: 'react-dom', commonjs2: 'react-dom', amd: 'react-dom', root: 'ReactDOM' },
67+
'react-addons-css-transition-group': { commonjs: 'react-addons-css-transition-group', commonjs2: 'react-addons-css-transition-group', amd: 'react-addons-css-transition-group', root: ['React','addons','CSSTransitionGroup'] }
7368
},
7469
};
7570

0 commit comments

Comments
 (0)