Skip to content

feat: add failOnWarn option#411

Merged
sxzz merged 4 commits intomainfrom
feat/failOnWarn
Aug 5, 2025
Merged

feat: add failOnWarn option#411
sxzz merged 4 commits intomainfrom
feat/failOnWarn

Conversation

@Gugustinette
Copy link
Collaborator

Description

Added a failOnWarn option by making the logger throw on warn() and warnOnce().

Not sure if the logger being responsible for throwing is the best way to handle this however 😕

Linked Issues

Resolves #322

@netlify
Copy link

netlify bot commented Aug 4, 2025

Deploy Preview for tsdown ready!

Name Link
🔨 Latest commit c42ae81
🔍 Latest deploy log https://app.netlify.com/projects/tsdown/deploys/6891f31fd7e30700073c5675
😎 Deploy Preview https://deploy-preview-411--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 Aug 4, 2025

Open in StackBlitz

npm i https://pkg.pr.new/tsdown@411

commit: c42ae81

@Gugustinette Gugustinette requested a review from sxzz August 4, 2025 17:50
@sxzz sxzz merged commit d7d4999 into main Aug 5, 2025
13 checks passed
@sxzz sxzz deleted the feat/failOnWarn branch August 5, 2025 14:18
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.

Option to treat warnings as error

2 participants