Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TypeScript 5 and other TypeScript versions #194

Closed
2 tasks done
corsen2000 opened this issue Mar 21, 2023 · 1 comment · Fixed by #226
Closed
2 tasks done

Support TypeScript 5 and other TypeScript versions #194

corsen2000 opened this issue Mar 21, 2023 · 1 comment · Fixed by #226

Comments

@corsen2000
Copy link

Description

As a developer using vite-plugin-dts I would like to use TypeScript 5. In particular, I'd like to use moduleResolution: bundler, which was added in that release.

vite-plugin-dts currently uses "@microsoft/api-extractor. Unfortunately, this package comes with a specific version of TypeScript. At the time of wring, that version is ~4.8.4.

Suggested solution

if microsoft/rushstack#3891 on @microsoft/api-extractor is merged, then we, in theory, would be able to use any version of TypeScript. I'm unsure if additional code changes may be required in this repository. Unfortunately this PR looks stalled.

Alternative

It may be possible to stop using @microsoft/api-extractor and use the TypeScript API or CLI directly. In one project, I've worked around this by removing vite-plugin-dts and using tsc directly. This works for a basic vite build but not so nicely with vite build --watch.

Additional context

There is an overlap between this issue and #190, but I thought it was worth filing separately.

Validations

  • Read the FAQ.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@Tanimodori
Copy link

API Extractor 7.35.0 was recently released using TypeScript ~5.0.4 (see PR microsoft/rushstack#4103). Is there any plan to upgrade to TS 5? @qmhc

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 a pull request may close this issue.

2 participants