summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/webpack.config.js')
-rw-r--r--plugins/jetpack/webpack.config.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/jetpack/webpack.config.js b/plugins/jetpack/webpack.config.js
index 0e04ef6f..a69bdc62 100644
--- a/plugins/jetpack/webpack.config.js
+++ b/plugins/jetpack/webpack.config.js
@@ -29,7 +29,6 @@ var webpackConfig = {
path: path.join( __dirname, '_inc/build' ),
filename: "[name].js"
},
- devtool: '#source-map',
module: {
// Webpack loaders are applied when a resource is matches the test case
@@ -95,7 +94,13 @@ var webpackConfig = {
}
}),
new ExtractTextPlugin( '[name].dops-style.css' )
- ]
+ ],
+ externals: {
+ 'react/addons': true,
+ 'react/lib/ExecutionEnvironment': true,
+ 'react/lib/ReactContext': true,
+ jsdom: 'window'
+ }
};
if ( NODE_ENV === 'production' ) {