From 59c7c39d6f65bc89a3749c0f7d040d2e36741563 Mon Sep 17 00:00:00 2001 From: eguneys Date: Tue, 28 Jul 2015 20:28:32 +0300 Subject: [PATCH] Update loaders.js Don't need babel-plugin-rewire on debug mode. It throws errors. --- webpack/loaders.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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',