Skip to content

[Bug]: NO_COLOR not being respected #6613

@H4ad

Description

@H4ad

Reproduction link or steps

I'm using rolldown-vite and noticed tthe during the build the flag NO_BUILD or isTTY is not being respected.

You can reproduce by opening using: https://stackblitz.com/edit/vitejs-rolldown-vite-pd3itygn?file=package.json

  • Wait until npm run install and npm run dev
  • Close the dev
  • Run NO_COLOR=true npm run build

What is expected?

To not emit any ASCI color character.

What is actually happening?

> [email protected] build
> vite build

rolldown-vite v7.1.17 building for production...
�[2K
transforming...�[32m✓�[39m 9 modules transformed.
rendering chunks...
computing gzip size...
�[2mdist/�[22m�[32mindex.html                   �[39m�[1m�[2m0.45 kB�[22m�[22m�[2m │ gzip: 0.30 kB�[22m
�[2mdist/�[22m�[2massets/�[22m�[35mBRH9nwdzg5Zuo67H.css  �[39m�[1m�[2m1.37 kB�[22m�[22m�[2m │ gzip: 0.65 kB�[22m
�[2mdist/�[22m�[36mchunks/DZvfnu_mkXkku42r.js   �[39m�[1m�[2m0.03 kB�[22m�[22m�[2m │ gzip: 0.05 kB�[22m
�[2mdist/�[22m�[2massets/�[22m�[36mindex-BzgZ314b.js     �[39m�[1m�[2m3.87 kB�[22m�[22m�[2m │ gzip: 2.01 kB�[22m
✓ built in 697ms

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

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions