webpack icon indicating copy to clipboard operation
webpack copied to clipboard

Externals React/React-with-addons compiling together

Open dennis-johnson-dev opened this issue 11 years ago • 1 comments

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?

dennis-johnson-dev avatar Dec 11 '14 15:12 dennis-johnson-dev

Nevermind. Internal error.

dennis-johnson-dev avatar Dec 11 '14 16:12 dennis-johnson-dev