Skip to content

Commit

Permalink
fix webpack external for react
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Mar 10, 2017
1 parent e9a70f5 commit fabd046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function generate(bundle, min) {
//rest depends on type
],
externals: { //react always external
react: { amd: 'react', global: 'React', commonjs: 'react' },
'react-dom': { amd: 'react-dom', global: 'ReactDOM', commonjs: 'react-dom' }
react: { amd: 'react', root: 'React', commonjs: 'react', commonjs2: 'react' },
'react-dom': { amd: 'react-dom', root: 'ReactDOM', commonjs: 'react-dom', commonjs2: 'react-dom' }
},
module: {
loaders: [
Expand Down

0 comments on commit fabd046

Please sign in to comment.