diff --git a/lib/compiler/hooks/tsconfig-paths.hook.ts b/lib/compiler/hooks/tsconfig-paths.hook.ts index 2672f2f0f..d6f35b60e 100644 --- a/lib/compiler/hooks/tsconfig-paths.hook.ts +++ b/lib/compiler/hooks/tsconfig-paths.hook.ts @@ -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;