-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent findExports from blowing up on object spread syntax
I have some files that use object spread, e.g.: ```js const foo = { ...bar, baz: true }; ``` In this scenario, `key` is undefined. To prevent this from blowing up, we need to make sure that `key` exists before trying to access its `name` property. There might be an opportunity to improve export detection to follow object spreads, but that's out of the scope of this bugfix. Fixes #373.
- Loading branch information
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters