Support path resolvers from tsconfig
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
in my tsconfig file i have paths set up like this
```json
"compilerOptions": {
...
"paths": {
"$lib/*": ["src/lib/*"]
}
},
```
If I import a module for testing (using loadr, tsm and uvu) the resolution fails as soon as the module/file that I import has a reference to `$lib` with the following error:
`Error [ERR_MODULE_NOT_FOUND]: Cannot find package '$lib' imported from /path/to/lib/utils.ts`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with the shown tsconfig paths mapping while loading the test module through loadr, tsm, and uvu; the failing import is referenced from /path/to/lib/utils.ts. Trace the module-resolution entry point and confirm that imports using $lib resolve according to tsconfig paths without the ERR_MODULE_NOT_FOUND error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100