Skip to content

[WIP] Update dependency tsdown to v0.20.1#3278

Closed
Copilot wants to merge 3 commits intorenovate/tsdown-0.xfrom
copilot/sub-pr-3222
Closed

[WIP] Update dependency tsdown to v0.20.1#3278
Copilot wants to merge 3 commits intorenovate/tsdown-0.xfrom
copilot/sub-pr-3222

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

Investigation Summary

The PR fails because tsdown 0.20.1 introduced a regression in how it handles type declaration bundling:

  • Identify the failure: check-exports command fails due to unresolved imports in generated .d.mts files
  • Root cause: tsdown 0.20.1 now bundles type imports from devDependencies (like Nuxt's #app/defaults) into the generated type definitions
  • Found similar issue: rolldown/tsdown#724 - "Version 0.20 throws massive amount of warnings"
  • Applied fix: Added external configuration to tsdown.config.ts with patterns to exclude framework-specific imports
  • Issue persists: The external config doesn't fully resolve the DTS bundling issue in v0.20.1
  • Need alternative solution: Either pin to tsdown 0.18.4 or wait for tsdown fix

Current Status

The external configuration has been added but the build still fails because tsdown 0.20.1's DTS bundler doesn't properly respect the external configuration for certain imports (specifically Nuxt's #app imports that use package.json imports field).

Recommendation

The tsdown dependency update from 0.18.4 to 0.20.1 should be reverted or held until:

  1. A new tsdown version fixes this regression, OR
  2. A workaround is found to properly exclude devDependency types from DTS bundling

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
hey-api-docs Ready Ready Preview, Comment Jan 28, 2026 11:20pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2026

⚠️ No Changeset found

Latest commit: 0e6381c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/tsdown-0.x branch from 50e46fc to d6cf8f2 Compare January 28, 2026 23:19
@mrlubos mrlubos closed this Jan 28, 2026
@mrlubos mrlubos deleted the copilot/sub-pr-3222 branch January 28, 2026 23:21
Copilot AI requested a review from mrlubos January 28, 2026 23:21
Copilot stopped work on behalf of mrlubos due to an error January 28, 2026 23:21
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