Compiler API to resolve path from ImportDeclaration #28276
Labels
API
Relates to the public API for TypeScript
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Hi there, since TS supports
paths
intsconfig.json
, is there an API in the compiler (Program
,CompilerHost
or something) to programmatically resolve real path of an import?I wrote this transformer https://github.com/longlho/ts-transform-css-modules and it's tripping up on paths that are aliased in
tsconfig.json
, e.g:tsconfig.json
I can try to manually reconstruct TS resolver but rather not to.
Thanks!
The text was updated successfully, but these errors were encountered: