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: Un-breaks getLoadersByName helper #1568

Merged
merged 3 commits into from
May 29, 2021
Merged

Conversation

rschristian
Copy link
Member

What kind of change does this PR introduce?

bugfix

Did you add tests for your changes?

No

Summary

Fixes #1565

#1418 broke the helper and it wasn't until after it was merged that I noticed this

Does this PR introduce a breaking change?

No

@rschristian rschristian requested a review from a team as a code owner May 28, 2021 23:40
@changeset-bot
Copy link

changeset-bot bot commented May 28, 2021

🦋 Changeset detected

Latest commit: 4b6b940

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +238 to +240
({ loader }) =>
(typeof loader === 'string' && loader.includes(name)) ||
(typeof loader.loader === 'string' && loader.loader.includes(name))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There very well could be a prettier way to express this but it's Friday and my brain is fried

@ForsakenHarmony ForsakenHarmony merged commit bc6d5f6 into master May 29, 2021
@ForsakenHarmony ForsakenHarmony deleted the fix/get-loaders-by-name branch May 29, 2021 22:13
@preact-bot preact-bot mentioned this pull request May 29, 2021
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.

getLoadersByName helper always returns an empty array
2 participants