INNER CODE UNIT · TypeScript

babelTime

onejs/one · packages/compiler/src/index.ts:192

      const babelTime = Date.now() - startTime

      if (babelOut?.code) {
        perfStats.babel.totalTransforms++
        perfStats.babel.totalTime += babelTime
        perfStats.babel.byEnvironment[environment].transforms++
        perfStats.babel.byEnvironment[environment].time += babelTime

        if (
          hasCompilerPlugin &&
          (babelOut.code.includes('react/compiler-runtime') ||
            babelOut.code.includes('react-compiler-runtime'))
        ) {
          debug?.(` 🪄 [compiler] ${relative(process.cwd(), id)} (${babelTime}ms)`)
          logCompiled(false, babelTime)
        }

        debug?.(`[babel] ${id}`)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…