From f61adba2ca4326d0d2162a3c5d9fed8e1f34688c Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Fri, 29 May 2020 17:08:28 +0200 Subject: [PATCH] Update babel config found log to new logging output (#13550) Updates the message to be in line with .env loading. --- packages/next/build/webpack/loaders/next-babel-loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/build/webpack/loaders/next-babel-loader.js b/packages/next/build/webpack/loaders/next-babel-loader.js index 747375c0f10c77..6de30047e4dd4d 100644 --- a/packages/next/build/webpack/loaders/next-babel-loader.js +++ b/packages/next/build/webpack/loaders/next-babel-loader.js @@ -1,6 +1,7 @@ import babelLoader from 'next/dist/compiled/babel-loader' import hash from 'next/dist/compiled/string-hash' import { basename, join } from 'path' +import * as Log from '../../output/log' // increment 'm' to invalidate cache // eslint-disable-next-line no-useless-concat @@ -124,8 +125,7 @@ module.exports = babelLoader.custom((babel) => { // 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}"`) + Log.info(`Using external babel configuration from ${file}`) } } } else {