We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isRemoved
1 parent 80a6277 commit 5ceaa5eCopy full SHA for 5ceaa5e
packages/babel-helper-define-polyfill-provider/src/visitors/usage.ts
@@ -10,7 +10,7 @@ function isRemoved(path: NodePath) {
10
if (path.listKey) {
11
if (!path.parentPath.node?.[path.listKey]?.includes(path.node)) return true;
12
} else {
13
- if (path.parentPath.node[path.key] !== path.node) return true;
+ if (path.parentPath.node?.[path.key] !== path.node) return true;
14
}
15
return isRemoved(path.parentPath);
16
0 commit comments