Skip to content

DTS Resolver #549

@sxzz

Description

@sxzz

rolldown-plugin-dts will require a DTS resolver capable of resolving types from both dependencies and relative TS files, in order to inline and bundle types.

The resolver's behavior should match that of the ts.resolveModuleName API in TypeScript. For reference, see the unit tests here: https://github.com/sxzz/dts-resolver/blob/ce9a1d1ea34ccabca10a275144e34012b9879eda/tests/index.test.ts#L101-L123


Currently https://github.com/sxzz/dts-resolver is using Oxc Resolver to simulate this behavior and there are lots of edge cases, like

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions