webpack
webpack copied to clipboard
Externals React/React-with-addons compiling together
We have a webpack config with externals like:
externals: {
'react': 'React'
}
In our files, we have
var react = require('react');
On the client, we are including the react-with-addons in a script tag. We are running into issues where it appears to be including the react.js (without addons) and sometimes the react-with-addons version. Is there something we are doing wrong with how we are specifying our externals?
Nevermind. Internal error.