Skip to content

Commit

Permalink
Set cache.contents (no version) on read request (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jun 6, 2017
1 parent c18331a commit ae4b423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export function register (options: Options = {}): Register {
return undefined
}

setCache(getFile(fileName), fileName)
cache.contents[fileName] = getFile(fileName)
}

return ts.ScriptSnapshot.fromString(cache.contents[fileName])
Expand Down

0 comments on commit ae4b423

Please sign in to comment.