unplugin / unplugin-isolated-decl

⚡️ A blazing-fast tool for generating isolated declarations.
MIT License
95 stars 4 forks source link

feat: tsx file support #18

Closed altano closed 2 months ago

altano commented 2 months ago

Description

This plugin does not yet work with tsx files, even though the supporting libraries (such as rollup-plugin-dts) do support them. This PR adds a .tsx files. I've added a tsx file to the fixtures and made sure the snapshots reflect that, with this PR, a component.d.ts file gets generated from the component.tsx file (before it would get referenced as an import but no .d.ts file would be generated).

Linked Issues

n/a

Additional context

n/a

stackblitz[bot] commented 2 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

pkg-pr-new[bot] commented 2 months ago

Open in Stackblitz

pnpm add https://pkg.pr.new/unplugin/unplugin-isolated-decl@18

commit: c18f9bd