Skip to content

fix: preserve external import types#243

Merged
sxzz merged 1 commit into
mainfrom
codex/fix-external-import-types
May 15, 2026
Merged

fix: preserve external import types#243
sxzz merged 1 commit into
mainfrom
codex/fix-external-import-types

Conversation

@sxzz

@sxzz sxzz commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve TS import types when their source resolves as external or unresolved
  • Keep namespace import rewriting for bundled internal declaration sources
  • Add regression coverage for external CommonJS dts import types and update snapshots

Tests

  • pnpm run format
  • pnpm run typecheck
  • pnpm run lint
  • pnpm test --run

@pkg-pr-new

pkg-pr-new Bot commented May 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: c46fe9f

@sxzz sxzz force-pushed the codex/fix-external-import-types branch from ff204ea to 65e40b3 Compare May 15, 2026 17:25
@sxzz sxzz force-pushed the codex/fix-external-import-types branch from 65e40b3 to c46fe9f Compare May 15, 2026 17:25
@sxzz sxzz merged commit 2a1fef6 into main May 15, 2026
12 checks passed
@sxzz sxzz deleted the codex/fix-external-import-types branch May 15, 2026 17:26
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.

1 participant