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

Fix crash in EntryRequest with multiple globs in the source field #9901

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

devongovett
Copy link
Member

@devongovett devongovett commented Aug 8, 2024

Fixes a bug introduced in #9590. The EntryRequest would crash if the package.json "source" field contained multiple globs that matched multiple files. This is because the index used to get the source location of the entry in the package.json was counting all of the matched files rather than the correct index in the array of sources. This resulted in passing undefined to getJSONSourceLocation which then crashed.

Added a test for this case and fixed it.

Fixes #9713

@devongovett devongovett merged commit 7228931 into v2 Aug 28, 2024
22 of 23 checks passed
@devongovett devongovett deleted the fix-entry-glob branch August 28, 2024 00:42
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.

Build fails with multiple source globs
1 participant