Skip to content

Support loading TypeScript configs and plugins in v4 projects #1076

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

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

thecrypticace
Copy link
Contributor

Fixes #1072

We already have tests to cover this case but vitest hooks into module loading which lets us load TypeScript during tests. I tested it by running the tests against the server running as a separate node process rather than importing the sources and running the server in-process.

The test harness is already set up for this so the only change needed to test this manually was this:
Screenshot 2024-10-25 at 15 43 28

@thecrypticace thecrypticace changed the title Transpile TypeScript plugins and configs for v4 projects Support loading TypeScript configs and plugins in v4 projects Oct 25, 2024
@RobinMalfait RobinMalfait merged commit cb0f305 into main Nov 8, 2024
@RobinMalfait RobinMalfait deleted the fix/v4-load-via-jiti branch November 8, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript config files not working in Intellisense via @config in v4
3 participants