Dave

Results 3 comments of Dave

I could take a crack at this. I’m currently doing it with my codegen/bundler tooling. I’m using a hybrid of the TypeScript and Node module resolution strategies and it works...

const sourceFile = importDeclaration.getModuleSpecifierSourceFile(); Relevant docs here: https://ts-morph.com/details/imports

I solved this by taking inspiration from this post: https://github.com/dsherret/ts-morph/issues/732