From 4e124d8421fefa7bdd5ad088896a223524bc5d06 Mon Sep 17 00:00:00 2001 From: dnalborczyk Date: Fri, 28 Jan 2022 03:09:38 -0500 Subject: [PATCH] fix: remove acorn-walk patch (#4369) --- src/utils/pureComments.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/utils/pureComments.ts b/src/utils/pureComments.ts index 2177df22e4e..e68eec664b8 100644 --- a/src/utils/pureComments.ts +++ b/src/utils/pureComments.ts @@ -12,16 +12,6 @@ import { } from '../ast/nodes/NodeType'; import { SOURCEMAPPING_URL_RE } from './sourceMappingURL'; -// patch up acorn-walk until class-fields are officially supported -basicWalker.PropertyDefinition = function (node: any, st: any, c: any): void { - if (node.computed) { - c(node.key, st, 'Expression'); - } - if (node.value) { - c(node.value, st, 'Expression'); - } -}; - interface CommentState { annotationIndex: number; annotations: acorn.Comment[];