We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba0f8ab commit 772d895Copy full SHA for 772d895
packages/gatsby/src/utils/babel/babel-plugin-remove-api.ts
@@ -57,7 +57,7 @@ export default declare(function removeApiCalls(
57
} else {
58
// if const {x,y} is used, we remove the property
59
if (
60
- t.isVariableDeclarator(ref.path) &&
+ t.isVariableDeclarator(ref.path.node) &&
61
t.isObjectPattern(
62
(ref.path.parent as t.VariableDeclaration).declarations[0]
63
.id
0 commit comments