Skip to content

Commit

Permalink
Skip class traversal if there are no private fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Apr 12, 2020
1 parent d450792 commit 27a09f1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ export function transformPrivateNamesUsage(
loose,
state,
) {
if (!privateNamesMap.size) return;

const body = path.get("body");

if (loose) {
Expand Down

0 comments on commit 27a09f1

Please sign in to comment.