Skip to content

Commit 46c0a74

Browse files
authored
fix
1 parent addacaa commit 46c0a74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ export function makePlugin<EnvSpecificOptions>(loadOptions: (opts: EnvSpecificOp
176176
const specifiers = i.specifiers;
177177
for (const specifier of specifiers) {
178178
const local = specifier.local;
179-
if (!state.scope.getBinding(local.node.name)?.referencePaths.length) {
180-
state.scope.getBinding(local.node.name)?.referencePaths.push(program);
179+
if (!state.scope.getBinding(local.name)?.referencePaths.length) {
180+
state.scope.getBinding(local.name)?.referencePaths.push(program);
181181
}
182182
}
183183
}

0 commit comments

Comments
 (0)