Skip to content

fix(findExports): filtering for named exports#55

Merged
pi0 merged 3 commits into
mainfrom
fix/exports-named
Jun 29, 2022
Merged

fix(findExports): filtering for named exports#55
pi0 merged 3 commits into
mainfrom
fix/exports-named

Conversation

@antfu

@antfu antfu commented Jun 27, 2022

Copy link
Copy Markdown
Member

The filtering introduced in #40 incidentally filtered out named exports like:

[
  { type: 'named', names: ['foo', /* ... */] },
  { type: 'named', names: ['bar', /* ... */] },
]

to becomes

[
  { type: 'named', names: ['bar', /* ... */] },
]

Due to both of the exports having undefined of the name property.

@antfu antfu requested a review from danielroe June 27, 2022 15:57
@danielroe

Copy link
Copy Markdown
Member

Nice catch!

@pi0 pi0 merged commit df908fd into main Jun 29, 2022
@pi0 pi0 deleted the fix/exports-named branch June 29, 2022 08:22
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.

3 participants