Skip to content
Permalink
Browse files

fix(build): Fix requiring React as external dependency

  • Loading branch information...
davidchin committed Mar 30, 2017
1 parent 57d3a8f commit 903eadbe81aeac6425a2db7f270f9858511ab418
Showing with 14 additions and 1 deletion.
  1. +14 −1 webpack.config.babel.js
@@ -44,7 +44,20 @@ const webpackConfig = {
modules: ['node_modules'],
extensions: ['.js', '.jsx'],
},
externals: ['react', 'react-dom'],
externals: {
react: {
amd: 'react',
commonjs: 'react',
commonjs2: 'react',
root: 'React',
},
'react-dom': {
amd: 'react-dom',
commonjs: 'react-dom',
commonjs2: 'react-dom',
root: 'ReactDOM',
},
},
};

export default webpackConfig;

0 comments on commit 903eadb

Please sign in to comment.
You can’t perform that action at this time.