Skip to content

Commit

Permalink
chore: Reduce debug logs (#14806)
Browse files Browse the repository at this point in the history
* improve

* improve

* Update babel.config.js

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
  • Loading branch information
liuxingbaoyu and JLHwung committed Aug 9, 2022
1 parent da31b01 commit 73d86fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions babel-worker.cjs
@@ -1,4 +1,4 @@
const { transformAsync } = require("@babel/core");
const { transformSync } = require("@babel/core");
const { mkdirSync, statSync, readFileSync, writeFileSync } = require("fs");
const { dirname } = require("path");
const fancyLog = require("fancy-log");
Expand Down Expand Up @@ -32,7 +32,7 @@ exports.transform = async function transform(src, dest) {
}
fancyLog(`Compiling '${chalk.cyan(src)}'...`);
const content = readFileSync(src, { encoding: "utf8" });
const { code } = await transformAsync(content, {
const { code } = transformSync(content, {
filename: src,
caller: {
// We have wrapped packages/babel-core/src/config/files/configuration.js with feature detection
Expand Down

0 comments on commit 73d86fe

Please sign in to comment.