Unverified Commit 4d2ca789 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Only log out using external babelrc once (#4600)

parent 3566b929
...@@ -24,7 +24,8 @@ module.exports = babelLoader.custom(babel => { ...@@ -24,7 +24,8 @@ module.exports = babelLoader.custom(babel => {
const options = Object.assign({}, cfg.options) const options = Object.assign({}, cfg.options)
if (cfg.hasFilesystemConfig()) { if (cfg.hasFilesystemConfig()) {
for (const file of [cfg.babelrc, cfg.config]) { 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) configs.add(file)
console.log(`> Using external babel configuration`) console.log(`> Using external babel configuration`)
console.log(`> Location: "${file}"`) console.log(`> Location: "${file}"`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment