Skip to content

fix: handle empty string outExtensions#494

Merged
sxzz merged 1 commit intorolldown:mainfrom
adamhl8:main
Sep 16, 2025
Merged

fix: handle empty string outExtensions#494
sxzz merged 1 commit intorolldown:mainfrom
adamhl8:main

Conversation

@adamhl8
Copy link
Contributor

@adamhl8 adamhl8 commented Sep 15, 2025

Fixes #493

Currently, there is a falsy check for both jsExtension and dtsExtension. These should instead be explicit checks for undefined so an empty string can be used as a custom extension.

@netlify
Copy link

netlify bot commented Sep 15, 2025

Deploy Preview for tsdown ready!

Name Link
🔨 Latest commit eb5fafc
🔍 Latest deploy log https://app.netlify.com/projects/tsdown/deploys/68c85be5e7bfed000862fe0f
😎 Deploy Preview https://deploy-preview-494--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 Sep 15, 2025

Open in StackBlitz

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

commit: eb5fafc

@sxzz sxzz merged commit 621a30d into rolldown:main Sep 16, 2025
14 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.

outExtensions does not handle empty strings

2 participants