Skip to content

fix: support the canonical TSImportType source field with an argument fallback - #223

Merged
Rich-Harris merged 3 commits into
mainfrom
fix/177-import-type-source
Sep 25, 2026
Merged

Rich-Harris merged 3 commits into
mainfrom
fix/177-import-type-source

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

closes #177

@pkg-svelte-dev

pkg-svelte-dev Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Install the latest version of esrap from 6dddae2:

pnpm add https://pkg.svelte.dev/esrap/c/6dddae2ef1ff0ea0a2802e0fd9d65910eaccda72

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/esrap/pr/223

@changeset-bot

changeset-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6dddae2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
esrap Patch

Not sure what this means? Click here to learn what changesets are.

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

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Realized type F = import("pkg", { with: { "resolution-mode": "import" } }).Foo; is also a thing, but that first requires parser support in the acorn TS plugin.

@Rich-Harris
Rich-Harris merged commit abf8872 into main Sep 25, 2026
7 checks passed
@Rich-Harris
Rich-Harris deleted the fix/177-import-type-source branch September 25, 2026 21:15
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.

TSImportType: read source with an argument fallback (forward-compat)

2 participants