Skip to content

Conversation

@guybedford
Copy link
Collaborator

This updates the detection of getter named exports to support named getter functions like:

Object.defineProperty(exports, "a", {
  enumerable: true,
  get: function get() {
    return _asdf.a;
  }
});

where the getter is both the get property and also has a function name since Babel always gives these functions this name in the emit.

@guybedford guybedford merged commit 1163d92 into master Oct 31, 2020
@guybedford guybedford deleted the getter-name branch October 31, 2020 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants