fix upgrade acorn regresssion

pull/6425/head
tanhauhau 5 years ago
parent 842017d8ce
commit f21bec970c

@ -65,7 +65,7 @@ export default class Expression {
walk(info, {
enter(node: any, parent: any, key: string) {
// don't manipulate shorthand props twice
if (key === 'value' && parent.shorthand) return;
if (key === 'key' && parent.shorthand) return;
// don't manipulate `import.meta`, `new.target`
if (node.type === 'MetaProperty') return this.skip();

Loading…
Cancel
Save