Skip to content

docs: link to @oxc-project/fast-glob for import.meta.glob pattern syntax#22282

Draft
shulaoda wants to merge 1 commit into
mainfrom
04-21-docs_link_to_oxc-project_fast-glob_for_import.meta.glob_pattern_syntax
Draft

docs: link to @oxc-project/fast-glob for import.meta.glob pattern syntax#22282
shulaoda wants to merge 1 commit into
mainfrom
04-21-docs_link_to_oxc-project_fast-glob_for_import.meta.glob_pattern_syntax

Conversation

@shulaoda
Copy link
Copy Markdown
Member

Summary

  • Update the glob syntax reference in the import.meta.glob docs (docs/guide/features.md) to point users to @oxc-project/fast-glob instead of tinyglobby.
  • Drops the now-stale superchupu.dev/tinyglobby/comparison link and lets readers consult the upstream project directly for the list of supported glob patterns.

Motivation

Vite's build is moving onto Rolldown, whose native import.meta.glob plugin matches patterns with @oxc-project/fast-glob rather than tinyglobby. @oxc-project/fast-glob intentionally drops extglob support, so the set of valid patterns users can write differs from what tinyglobby's docs advertise. Going forward, the same matcher will be exposed to the JS side via a napi binding so dev and build share one implementation — pointing users at the oxc repo now keeps the documented syntax consistent with the matcher they will actually hit.

Scope

Docs-only change. The JS-side implementation in packages/vite/src/node/plugins/importMetaGlob.ts still imports from tinyglobby; swapping it to the upcoming napi binding will land in a follow-up. Similar links elsewhere (optimizeDeps.entries, server.warmup) were intentionally left alone since they describe different features and are not affected by the Rolldown migration.

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.

1 participant