Skip to content

Commit

Permalink
fix: remove acorn-walk patch (#4369)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 28, 2022
1 parent f523f00 commit 4e124d8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/utils/pureComments.ts
Expand Up @@ -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[];
Expand Down

0 comments on commit 4e124d8

Please sign in to comment.