From 4d2ca789d2e7e3d3bd66449421be0003967e00e0 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sat, 16 Jun 2018 13:03:42 +0200 Subject: [PATCH] Only log out using external babelrc once (#4600) --- build/loaders/next-babel-loader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/loaders/next-babel-loader.js b/build/loaders/next-babel-loader.js index cf2bdda9..ecf6cf78 100644 --- a/build/loaders/next-babel-loader.js +++ b/build/loaders/next-babel-loader.js @@ -24,7 +24,8 @@ module.exports = babelLoader.custom(babel => { const options = Object.assign({}, cfg.options) if (cfg.hasFilesystemConfig()) { for (const file of [cfg.babelrc, cfg.config]) { - if (file && !configs.has(file)) { + // We only log for client compilation otherwise there will be double output + if (file && !isServer && !configs.has(file)) { configs.add(file) console.log(`> Using external babel configuration`) console.log(`> Location: "${file}"`)