Repository navigation
fix(graph): translate wildcards inside import.meta.glob brace alternatives - #274
Merged
adityankale190895 merged 1 commit intoNov 18, 2026
Merged
Conversation
…tives
globPattern escaped each brace alternative as literal text, so ./icons/{index,*-icon}.ts matched index.ts only. Files the glob loads through a wildcard alternative had no edge, and changing them selected no tests. Alternatives are now translated like the rest of the pattern; nested braces stay computed.
Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review of 6e7260c.
Checked:
- The fix matches #273. Each brace alternative is now translated as a glob, so
{index,*-icon}matches both. Nested braces and a stray}returnundefined, which keeps the load computed (the safe side). Patterns without braces translate exactly as before. - The new test fails with
src/reverted (1 of 3 fail) and passes with the fix.tests/repo/vite-glob-brace-wildcards.test.tsis listed inrelease-files.json. The commit is DCO-signed. The branch is level with main. CI is green.
Fixed: nothing.
Still open: none.
FredApps
marked this pull request as ready for review
November 18, 2026 00:55
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.
Fixes #273
Brace alternatives are translated with the same rules as the rest of the pattern (
*,?,**). Literal alternatives such as*.{ts,tsx}match as before. Nested braces or an unmatched}keep the load computed, as an unclosed{already did.Validation:
tests/repo/vite-glob-brace-wildcards.test.ts: the wildcard-alternative case fails onmainand passes here. Literal alternatives and nested braces pass on both.npm run typecheck,npm test(1170 pass),npm run build,npm run audit:boundary.