Cloning reused node in class properties transform (#6517)
This commit is contained in:
parent
8d4674ca5a
commit
fc75198fb4
@ -104,7 +104,7 @@ export default function({ types: t }, options) {
|
||||
t.variableDeclarator(ident, propNode.key),
|
||||
]),
|
||||
);
|
||||
propNode.key = ident;
|
||||
propNode.key = t.clone(ident);
|
||||
}
|
||||
|
||||
instanceBody.push(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user