Skip to content

Commit

Permalink
Update babel config found log to new logging output (#13550)
Browse files Browse the repository at this point in the history
Updates the message to be in line with .env loading.
  • Loading branch information
timneutkens authored May 29, 2020
1 parent 0199d00 commit fef3b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/webpack/loaders/next-babel-loader.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit fef3b8c

Please sign in to comment.