chore(deps): replace fast-glob with tinyglobby#450
Merged
alexander-akait merged 1 commit intowebpack:mainfrom Feb 28, 2026
Merged
Conversation
Replace fast-glob with tinyglobby, a smaller and faster alternative. All fast-glob APIs used in this project have direct tinyglobby equivalents: - glob() for pattern matching - isDynamicPattern() for detecting glob patterns - escapePath() for escaping glob characters in paths The only API without a direct equivalent is generateTasks(), which was used solely to extract the static base directory from a glob pattern. This is replaced with a small getGlobBase() helper that splits on path separators and stops at the first dynamic segment. Addresses webpack#449 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
alexander-akait
approved these changes
Feb 28, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #450 +/- ##
==========================================
+ Coverage 93.60% 93.73% +0.12%
==========================================
Files 3 3
Lines 391 399 +8
Branches 129 131 +2
==========================================
+ Hits 366 374 +8
Misses 21 21
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace
fast-globwithtinyglobby, a smaller and faster alternative with a compatible API surface.Prompted by #449 —
fast-globis the heavier of the two production dependencies, andtinyglobbycovers the same use cases with a smaller install footprint.Changes
src/utils.js— swapfast-globimport for named imports fromtinyglobby(glob,isDynamicPattern,escapePath). Add a smallgetGlobBase()helper to replace thegenerateTasks()[0].basepattern (splits on/and stops at the first dynamic segment — verified to produce identical output for all relevant patterns).package.json— removefast-glob, addtinyglobby ^0.2.12.package-lock.json— regenerated.API mapping
fastGlob(pattern, opts)glob([pattern], opts)fastGlob.isDynamicPattern()isDynamicPattern()fastGlob.escapePath()escapePath()fastGlob.generateTasks()getGlobBase()helper.basewas used; helper extracts the static prefixTesting
All 142 tests pass, 320 snapshots match. Linter and formatter clean.
Addresses #449