Compare commits
1 commit
f37379ff8f
...
20aa17df25
Author | SHA1 | Date | |
---|---|---|---|
20aa17df25 |
1 changed files with 1 additions and 2 deletions
|
@ -225,8 +225,7 @@ export default function(filename, options = {}) {
|
|||
let program = ts.createProgram([filename], options)
|
||||
let checker = program.getTypeChecker()
|
||||
const sourceFiles = program.getSourceFiles()
|
||||
const filenameUnix = filename.replaceAll('\\', '/')
|
||||
let sourceFile = sourceFiles.find(file => file.fileName === filenameUnix)
|
||||
let sourceFile = sourceFiles.find(file => file.fileName === filename)
|
||||
|
||||
ts.forEachChild(sourceFile, visit(node, checker))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue