From 72d23a982845cf2c2924fd3f2e2ee65efc852a72 Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Tue, 29 Sep 2015 17:12:16 -0700 Subject: [PATCH] Speed up webpack bundle builds This is the equivalent of: https://github.com/facebook/relay/commit/f7f6c100b98450b9587a2bbf3fdaf21c78b024cc Speeds up the first-build from 12s to 4s on my machine. --- server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 0c57504..7c12d5c 100644 --- a/server.js +++ b/server.js @@ -21,9 +21,10 @@ var compiler = webpack({ module: { loaders: [ { - test: /\.js$/, + exclude: /node_modules/, loader: 'babel', - query: {stage: 0, plugins: ['./build/babelRelayPlugin']} + query: {stage: 0, plugins: ['./build/babelRelayPlugin']}, + test: /\.js$/, } ] },