Skip to content

Commit

Permalink
fix: allow to remove type only imports including alias path
Browse files Browse the repository at this point in the history
The current behaviour is that type only imports don't get remove if they contain a tsconfig alias.

Closes #1145
  • Loading branch information
TheNoim committed Apr 26, 2021
1 parent d52ee40 commit bdb89b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/compiler/hooks/tsconfig-paths.hook.ts
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 bdb89b3

Please sign in to comment.