diff --git a/webpack/loaders.js b/webpack/loaders.js index 840974a..bfd1dd9 100644 --- a/webpack/loaders.js +++ b/webpack/loaders.js @@ -31,8 +31,11 @@ if (DEBUG || TEST) { jsxLoader = []; if (!TEST) { jsxLoader.push('react-hot'); + jsxLoader.push('babel-loader?optional[]=runtime&stage=0'); + } else { + jsxLoader.push('babel-loader?optional[]=runtime&stage=0&plugins=rewire'); + } } - jsxLoader.push('babel-loader?optional[]=runtime&stage=0&plugins=rewire'); sassParams.push('sourceMap', 'sourceMapContents=true'); sassLoader = [ 'style-loader',