Skip to content

Commit

Permalink
fix(ts-transform-paths): processed map removed
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Jun 26, 2018
1 parent 35376c3 commit 7bf7d11
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/ts-transform-paths/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ function importPathVisitor(
}

export default function transformPaths(program?: ts.Program) {
const processed = new Set<string>()
const plugin = {
before(
transformationContext: ts.TransformationContext
Expand All @@ -151,8 +150,6 @@ export default function transformPaths(program?: ts.Program) {
)

return (sf: ts.SourceFile) => {
if (processed.has(sf.fileName)) return sf
processed.add(sf.fileName)
const ctx: ImportPathVisitorContext = {
sf,
resolver,
Expand Down

0 comments on commit 7bf7d11

Please sign in to comment.