Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Oct 27, 2023
1 parent addacaa commit 46c0a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ export function makePlugin<EnvSpecificOptions>(loadOptions: (opts: EnvSpecificOp
const specifiers = i.specifiers;
for (const specifier of specifiers) {
const local = specifier.local;
if (!state.scope.getBinding(local.node.name)?.referencePaths.length) {
state.scope.getBinding(local.node.name)?.referencePaths.push(program);
if (!state.scope.getBinding(local.name)?.referencePaths.length) {
state.scope.getBinding(local.name)?.referencePaths.push(program);
}
}
}
Expand Down

0 comments on commit 46c0a74

Please sign in to comment.