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: handle warmup glob hang #18462

Merged
merged 1 commit into from
Oct 26, 2024
Merged

fix: handle warmup glob hang #18462

merged 1 commit into from
Oct 26, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Oct 25, 2024

Description

If the warmup files is empty, we skip doing any globbing. It also works around SuperchupuDev/tinyglobby#65 otherwise the glob hangs the process.

I also updated tinyglobby as it got some fixes around supporting negating absolute patterns which was relied on by Astro.

I also added ignore for .git and node_modules. It's probably unlikely someone needs to warmup those files and it's better to target your own source code as the entrypoints instead. I think it helps if the glob is ./**/*.jsx too as tinyglobby (or any other glob libraries) couldn't detect the glob parent to know not to crawl .git or node_modules.

@bluwy bluwy added the p3-minor-bug An edge case that only affects very specific usage (priority) label Oct 25, 2024
@patak-dev patak-dev merged commit 409fa5c into main Oct 26, 2024
14 checks passed
@patak-dev patak-dev deleted the warmup-hang branch October 26, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants