Skip to content

Commit

Permalink
use react from npm in dev
Browse files Browse the repository at this point in the history
Works around hot-module-loader issue gaearon/react-hot-loader#53 where it can't use the compiled version from Canvas. Pinned react at same version as Canvas' (currently 0.12.2)
  • Loading branch information
grahamb committed Apr 10, 2015
1 parent 8263579 commit 0a93dac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ module.exports = {
__dirname + '/src/js',
],
alias: {
'react': __dirname + '/vendor/canvas/public/javascripts/bower/react/react-with-addons'
'react': 'react/addons',
'react/addons/lib': 'react/../lib'
}
},

Expand Down

0 comments on commit 0a93dac

Please sign in to comment.