Skip to content

fix: print blank line only when the log level is info.#689

Merged
sxzz merged 1 commit intorolldown:mainfrom
tomgao365:main
Jan 5, 2026
Merged

fix: print blank line only when the log level is info.#689
sxzz merged 1 commit intorolldown:mainfrom
tomgao365:main

Conversation

@tomgao365
Copy link
Contributor

  • [ x] This PR contains AI-generated code, but I have carefully reviewed it myself. Otherwise, my PR may be closed.

Description

Based on several plugins written for tsdown, when the tsdown log level is set to silent, an extra line break still appears. After investigation, it was found to be caused by the line of code console.info('').

console.info('')

https://github.com/tomjs/vite-plugin-vscode/blob/main/src/index.ts#L280-L285

Linked Issues

Additional context

@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for tsdown ready!

Name Link
🔨 Latest commit 13b6446
🔍 Latest deploy log https://app.netlify.com/projects/tsdown/deploys/695b8c35e5d13000081331f5
😎 Deploy Preview https://deploy-preview-689--tsdown.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 5, 2026

Open in StackBlitz

npm i https://pkg.pr.new/tsdown@689
npm i https://pkg.pr.new/create-tsdown@689
npm i https://pkg.pr.new/tsdown-migrate@689

commit: 13b6446

@sxzz sxzz merged commit 96d82c1 into rolldown:main Jan 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants