Skip to content

Commit

Permalink
Update packages/babel-helper-replace-supers/src/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
JLHwung and nicolo-ribaudo committed Oct 11, 2020
1 parent 6a5af00 commit d6d40d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-helper-replace-supers/src/index.js
Expand Up @@ -45,7 +45,7 @@ export function skipAllButComputedKey(path: NodePath) {
// For perf reasons, the environmentVisitor will be traversed with `{ noScope: true }`, which means `path.scope` is undefined.
// Avoid using `path.scope` here
export const environmentVisitor = {
"StaticBlock|ClassPrivateProperty|TypeAnnotation"(path: NodePath) {
[`${t.StaticBlock ? "StaticBlock|" : ""}ClassPrivateProperty|TypeAnnotation`](path: NodePath) {
path.skip();
},

Expand Down

0 comments on commit d6d40d9

Please sign in to comment.