Skip to content

fix: downgrade rolldown-plugin-dts to 0.28 to restore TypeScript 7.0 support - #1107

Merged
sxzz merged 1 commit into
mainfrom
fix/revert-rolldown-plugin-dts-0.29
Oct 27, 2026
Merged

sxzz merged 1 commit into
mainfrom
fix/revert-rolldown-plugin-dts-0.29

Conversation

@sxzz

@sxzz sxzz commented Oct 27, 2026

Copy link
Copy Markdown
Member

v0.23.2 bumped rolldown-plugin-dts from ^0.28.7 to ^0.29.0-beta.2. In 0.29, the tsgo generator is only auto-selected when typescript/async exposes Program.prototype.getDeclarationEmit, which TypeScript 7.1 beta has but 7.0.x does not (7.0 only ships typescript/unstable/async). With TypeScript 7.0 installed and no isolatedDeclarations, the plugin falls back to tsc and then throws because TypeScript >= 7 has no classic API.

This PR downgrades rolldown-plugin-dts back to ^0.28.8 for a patch release, and reverts the related changes:

  • tests/issues.test.ts: dts: { tsc: { build: true } } -> dts: { build: true } (0.28 option shape)
  • schema.json: regenerated from the 0.28 types

Upgrading to 0.29 is a breaking change for users (drops TypeScript 7.0, moves build / vue / etc. under dts.tsc), so it should land in a minor release instead.

Verified that a minimal project with typescript@7.0.2 builds with rolldown-plugin-dts@0.28.8 and fails with the reported error on 0.29.0-beta.2.

Closes #1106

Copilot AI balanced review requested due to automatic review settings October 27, 2026 17:39
@netlify

netlify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tsdown-main ready!

Name Link
🔨 Latest commit 6f98428
🔍 Latest deploy log https://app.netlify.com/projects/tsdown-main/deploys/6ae0e1d5151e3255eb054590
😎 Deploy Preview https://deploy-preview-1107--tsdown-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@pkg-pr-new

pkg-pr-new Bot commented Oct 27, 2026

Copy link
Copy Markdown

Open in StackBlitz

tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown@1107 -D
npm i https://pkg.pr.new/rolldown/tsdown@1107 -D
yarn add https://pkg.pr.new/rolldown/tsdown@1107.tgz -D

create-tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1107 -D
npm i https://pkg.pr.new/rolldown/tsdown/create-tsdown@1107 -D
yarn add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1107.tgz -D

@tsdown/css

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1107 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1107 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1107.tgz -D

@tsdown/exe

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1107 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1107 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1107.tgz -D

tsdown-migrate

pnpm add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1107 -D
npm i https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1107 -D
yarn add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1107.tgz -D

commit: 6f98428

@sxzz
sxzz merged commit 0344c4f into main Oct 27, 2026
17 of 18 checks passed
@sxzz
sxzz deleted the fix/revert-rolldown-plugin-dts-0.29 branch October 27, 2026 17:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The dependency rollback, lockfile, schema, and test configuration are consistent, with no blocking issues identified.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

This PR restores TypeScript 7.0 support in tsdown by rolling back rolldown-plugin-dts to the 0.28 release line, addressing the patch-release regression reported in #1106.

Changes:

  • Downgrades rolldown-plugin-dts to ^0.28.8 and updates the lockfile.
  • Restores the 0.28 declaration-option schema.
  • Updates the project-reference test to use dts.build.
File Description
tests/​issues.test.ts Restores the 0.28-compatible build option.
schema.json Aligns declaration options with the downgraded plugin.
pnpm-workspace.yaml Sets the plugin dependency range to ^0.28.8.
pnpm-lock.yaml Locks plugin 0.28.8 and its peer metadata.

Review effort: Balanced

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.

Build regression with TypeScript 7 in v0.23.2

3 participants