Skip to content

Commit

Permalink
Merge pull request #1148 from schuelerkarriere/fix-1145
Browse files Browse the repository at this point in the history
fix: allow to remove type only imports including alias path
  • Loading branch information
kamilmysliwiec authored Jul 7, 2021
2 parents 70a1bb2 + bdb89b3 commit cb324a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compiler/hooks/tsconfig-paths.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function tsconfigPathsBeforeHookFactory(
return node;
}
(newNode as any).moduleSpecifier = tsBinary.createLiteral(result);
(newNode as any).moduleSpecifier.parent = (node as any).moduleSpecifier.parent;
return newNode;
} catch {
return node;
Expand Down

0 comments on commit cb324a3

Please sign in to comment.