Skip to content

fix: rework type-only export#242

Merged
sxzz merged 4 commits into
mainfrom
codex/typeonly-ids
May 15, 2026
Merged

fix: rework type-only export#242
sxzz merged 4 commits into
mainfrom
codex/typeonly-ids

Conversation

@sxzz
Copy link
Copy Markdown
Owner

@sxzz sxzz commented May 15, 2026

Summary

  • track type-only exports per declaration module and propagate them through named re-exports and export-star chains
  • restore type modifiers in final declaration chunks, including external export type * statements
  • add regressions for type-only export chains and class re-exports

Closes #95

Tests

  • pnpm exec vitest tests/index.test.ts --run -t "type-only"
  • pnpm exec vitest tests/rollup-plugin-dts.test.ts --run
  • pnpm run format
  • pnpm run lint
  • pnpm run typecheck

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 15, 2026

Open in StackBlitz

npm i https://pkg.pr.new/rolldown-plugin-dts@242

commit: 0d2efde

@sxzz sxzz force-pushed the codex/typeonly-ids branch 3 times, most recently from cc264bc to 9775c7e Compare May 15, 2026 15:58
@sxzz sxzz force-pushed the codex/typeonly-ids branch from 9775c7e to 862e1f0 Compare May 15, 2026 16:07
@sxzz sxzz marked this pull request as ready for review May 15, 2026 16:41
@sxzz sxzz changed the title fix: preserve type-only re-export chains fix: rework type-only export May 15, 2026
@sxzz sxzz merged commit 2d9a48b into main May 15, 2026
12 checks passed
@sxzz sxzz deleted the codex/typeonly-ids branch May 15, 2026 16:42
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.

export * loses type modifiers when flattening re-exports

1 participant