mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Only log out using external babelrc once (#4600)
This commit is contained in:
parent
3566b92900
commit
4d2ca789d2
|
@ -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}"`)
|
||||
|
|
Loading…
Reference in a new issue