Skip to content

Commit

Permalink
require 'react' but use 'React' when using globals (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankshaw authored and danez committed Oct 19, 2016
1 parent 51525b7 commit fd8d41b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/react-tabs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/react-tabs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-tabs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/react-tabs.min.js.map

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions webpack.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@ module.exports = {
libraryTarget: 'umd'
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom'
}
},
module: {
loaders: [
Expand Down

0 comments on commit fd8d41b

Please sign in to comment.