fix: add inList setter for compatibility with babel-minify (#10656)
This commit is contained in:
parent
f544753bb8
commit
0f949990c3
@ -161,6 +161,13 @@ export default class NodePath {
|
||||
return !!this.listKey;
|
||||
}
|
||||
|
||||
set inList(inList) {
|
||||
if (!inList) {
|
||||
this.listKey = null;
|
||||
}
|
||||
// ignore inList = true as it should depend on `listKey`
|
||||
}
|
||||
|
||||
get parentKey() {
|
||||
return this.listKey || this.key;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user