diff --git a/build/docs.config.js b/build/docs.config.js index eea689e45..d9e2240dd 100644 --- a/build/docs.config.js +++ b/build/docs.config.js @@ -28,7 +28,7 @@ module.exports = makeConfig({ plugins: [ new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.bundle.js') ], - + loaders: [ { test: /\.json$/, loader: 'json' }, { test: /\.raw$/, loader: 'raw' }, diff --git a/build/make-config.js b/build/make-config.js index 5ca74ac6d..3b7fd4877 100644 --- a/build/make-config.js +++ b/build/make-config.js @@ -95,7 +95,9 @@ module.exports = function makeConfig(options){ resolve: { extensions: ['', '.js', '.jsx'], alias: { - 'react-widgets': path.join(__dirname, '..', 'src') + react: path.resolve('./node_modules/react'), + 'react-widgets': path.join(__dirname, '..', 'src'), + 'react-dom': path.resolve('./node_modules/react-dom') } },