You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to analyze the dependency tree of typescript files using getReferencedSourceFiles(). I’ve noticed that it doesn’t work for file with dynamic imports, as for example:
declareconstfoo: import("./foo").Foo
When enabling logging, I get the following warning: Unknown import string literal parent: LiteralType.
I get a valid result for the dynamic import when calling getImportStringLiterals(). So I assume that the ImportType Node needs to be handled somehow in getSourceFileForLiteral().
The text was updated successfully, but these errors were encountered:
I want to analyze the dependency tree of typescript files using
getReferencedSourceFiles()
. I’ve noticed that it doesn’t work for file with dynamic imports, as for example:When enabling logging, I get the following warning:
Unknown import string literal parent: LiteralType
.I get a valid result for the dynamic import when calling
getImportStringLiterals()
. So I assume that theImportType
Node needs to be handled somehow ingetSourceFileForLiteral()
.The text was updated successfully, but these errors were encountered: