Skip to content

feat!: make entry only filter Rolldown entries - #342

Merged
sxzz merged 1 commit into
mainfrom
entry-filter
Nov 4, 2026
Merged

sxzz merged 1 commit into
mainfrom
entry-filter

Conversation

@sxzzbot

@sxzzbot sxzzbot commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

AI usage

  • No AI was used in this PR.
  • AI was used: Claude Code + Claude Opus 5.5
    • I have carefully reviewed the AI-generated content myself.

Description

entry now only filters which Rolldown entries emit declarations. Files that match the glob but are only imported by an entry no longer get their own declaration chunks.

Previously a matching non-entry file was emitted only if the JavaScript module graph reached it, so the result depended on the graph (e.g. it differed in declaration-only builds). Filtering entries keeps the use case from #212 (skipping declarations for some entries) while making the output predictable.

Linked Issues

#212, #231

Additional context

Breaking: builds that relied on entry to emit declarations for non-entry files must add those files to Rolldown input.

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: ae28fce

@sxzz
sxzz merged commit 9a424bc into main Nov 4, 2026
15 checks passed
@sxzz
sxzz deleted the entry-filter branch November 4, 2026 15:28
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