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(js): update tinyglobby to speed up shallow file matching #30415

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Mar 18, 2025

tinyglobby at 0.2.10 (what we use now) is slow on shallow files, but the latest version 0.2.12 is fast due to this PR https://github.com/SuperchupuDev/tinyglobby/pull/69/files.

This PR updates both the js and esbuild plugins to use the newest versions, but also adds tinyglobby@^0.2.12 to our root package.json so we get the speed increase right away. I removed fast-glob in our repo scripts and replaced it with tinyglobby.

Current Behavior

Asset handling is slow for shallow files like LICENSE but is fine for scoped patterns like src/**/*.ts.

Expected Behavior

Asset handling should be fast for shallow files.

Related Issue(s)

Fixes #

Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Mar 18, 2025 7:26pm

Copy link

nx-cloud bot commented Mar 18, 2025

View your CI Pipeline Execution ↗ for commit f12cb13.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 3m 42s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=68ad7... ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-18 19:25:35 UTC

@FrozenPandaz FrozenPandaz merged commit e0cae53 into master Mar 19, 2025
12 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/tinyglobby-slowness branch March 19, 2025 13:20
FrozenPandaz pushed a commit that referenced this pull request Mar 19, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
`tinyglobby` at `0.2.10` (what we use now) is slow on shallow files, but
the latest version `0.2.12` is fast due to this PR
https://github.com/SuperchupuDev/tinyglobby/pull/69/files.

This PR updates both the js and esbuild plugins to use the newest
versions, but also adds `tinyglobby@^0.2.12` to our root `package.json`
so we get the speed increase right away. I removed `fast-glob` in our
repo scripts and replaced it with `tinyglobby`.

Asset handling is slow for shallow files like `LICENSE` but is fine for
scoped patterns like `src/**/*.ts`.

Asset handling should be fast for shallow files.

<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit e0cae53)
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.

None yet

3 participants