Skip to content

Commit

Permalink
Update doc regarding webpack and React 15 (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercollier authored and lelandrichardson committed Apr 21, 2016
1 parent 3a48228 commit d31aeeb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/guides/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ react-dom/server
react-addons-test-utils
```

## React 15 Compatability

If you are using React 15, your config should include these externals:

```js
/* webpack.config.js */
// ...
externals: {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true
}
// ...
```

## Example Projects

Expand Down

0 comments on commit d31aeeb

Please sign in to comment.