diff --git a/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts b/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts index 5fa69ae6b5..358edf0855 100644 --- a/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts +++ b/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts @@ -70,7 +70,7 @@ export function lower( kind: "Identifier", identifier: builder.resolveBinding(ref), effect: Effect.Unknown, - loc: GeneratedSource, + loc: ref.loc ?? GeneratedSource, }); }