swc-project / swc-project/swc-node
Support for TypeScript's `${configDir}` template variable in tsconfig files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 95
- Avg merge
- 14d 11h
- Merged PRs (30d)
- 1
Description
Hi there,
I think that swc-node doesn't support TypeScript's ${configDir} template variable introduced in TypeScript 5.5. I use it in my paths and get import errors with those paths. Have you every considered using tsconfck for parsing tsconfig files ? Big projects like Vite seem to use it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue concerns tsconfig parsing and path resolution in swc-node, specifically TypeScript 5.5's ${configDir} variable. Start by locating the tsconfig parser and path-resolution entry point, then reproduce the import failure with a config using this variable. Done means those paths resolve correctly; the issue also references tsconfck as a possible parsing approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100