Skip to content

Commit 4e124d8

Browse files
authored
fix: remove acorn-walk patch (#4369)
1 parent f523f00 commit 4e124d8

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/utils/pureComments.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ import {
1212
} from '../ast/nodes/NodeType';
1313
import { SOURCEMAPPING_URL_RE } from './sourceMappingURL';
1414

15-
// patch up acorn-walk until class-fields are officially supported
16-
basicWalker.PropertyDefinition = function (node: any, st: any, c: any): void {
17-
if (node.computed) {
18-
c(node.key, st, 'Expression');
19-
}
20-
if (node.value) {
21-
c(node.value, st, 'Expression');
22-
}
23-
};
24-
2515
interface CommentState {
2616
annotationIndex: number;
2717
annotations: acorn.Comment[];

0 commit comments

Comments
 (0)