We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent addacaa commit 46c0a74Copy full SHA for 46c0a74
src/plugin.ts
@@ -176,8 +176,8 @@ export function makePlugin<EnvSpecificOptions>(loadOptions: (opts: EnvSpecificOp
176
const specifiers = i.specifiers;
177
for (const specifier of specifiers) {
178
const local = specifier.local;
179
- if (!state.scope.getBinding(local.node.name)?.referencePaths.length) {
180
- 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);
181
}
182
183
0 commit comments