Skip to content

[Bug]: use devtools option make time increases seriously #5896

Description

@CrabSAMA

Reproduction link or steps

https://stackblitz.com/edit/rolldown-rolldown-starter-stackblitz-r1n4t3zh?file=antd-demo%2Fvite.config.ts&view=editor

Reproduce step:

  1. cd antd-demo
  2. npm run build, current vite.config.ts not use debug option
  3. edit vite.config.ts to use debug option
  4. npm run build, watch what time spend at building

What is expected?

use debug option will not affect the final build time.

use debug option will add some time in log file I/O is as excepted, but I think it can not affect the display build time, it will affect my judgment of the build time

What is actually happening?

use debug option make time increases seriously

same code:

without debug option 18.32s

Image

use debug option 5m 10s

Image

System Info

I use stackblitz to make repoduction, so this is stackblitz system info:
  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm


This is my own computer system info:

  System:
    OS: macOS 15.5
    CPU: (8) arm64 Apple M1
    Memory: 191.27 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
    pnpm: 10.13.1 - ~/Library/pnpm/pnpm
    bun: 1.1.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 139.0.7258.128
    Safari: 18.5

Any additional comments?

I think we need use one new thread to handle log file I/O, or maybe make some new change of display build time?

Metadata

Metadata

Type

Fields

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions