Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getter function name in reexports #26

Merged
merged 1 commit into from
Oct 31, 2020
Merged

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.

None yet

1 participant