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 09d1f8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/babel-helper-replace-supers/src/index.js
Expand Up @@ -45,7 +45,10 @@ 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) {
// todo (Babel 8): remove StaticBlock brand checks
[`${t.StaticBlock ? "StaticBlock|" : ""}ClassPrivateProperty|TypeAnnotation`](
path: NodePath,
) {
path.skip();
},

Expand Down

0 comments on commit 09d1f8a

Please sign in to comment.