message: [bugfix] Build: should use babel sync compile
diff: @@ -46,14 +46,9 @@ function compile(dir, jsOnly = false) {
  fs.outputFileSync(output, compiler(source, compilerOption).js);
  } else if (/\.js$/.test(file)) {
  - babel.transformFile(
  - absolutePath,
  - compilerOption.babel,
  - (err, { code }) => {
  + const { code } = babel.transformFileSync(absolutePath, compilerOption.babel);
  fs.outputFileSync(absolutePath, code);
  }
  - );
  - }
  });
  }
  