Skip to content

perf(deps): upgrade tinyglobby and use dynamic import#1544

Merged
Timeless0911 merged 4 commits intomainfrom
david/chore/upgrade-tinyglobby
Mar 19, 2026
Merged

perf(deps): upgrade tinyglobby and use dynamic import#1544
Timeless0911 merged 4 commits intomainfrom
david/chore/upgrade-tinyglobby

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 commented Mar 18, 2026

Summary

Upgrade tinyglobby to v0.2.15 and remove the temporary Renovate ignore for it.

Stop prebundling tinyglobby and load it with await import('tinyglobby') when resolving glob entries.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings March 18, 2026 09:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades tinyglobby to v0.2.15, removes the temporary Renovate ignore, and adjusts how tinyglobby is consumed/prebundled across packages to avoid the previous prebundle/alias approach in @rslib/core.

Changes:

  • Bump tinyglobby dependency to ^0.2.15 in packages/core and packages/plugin-dts.
  • In @rslib/core, stop prebundling/aliasing tinyglobby and switch to lazy loading via await import('tinyglobby').
  • In rsbuild-plugin-dts, keep prebundling tinyglobby but skip generating its DTS via ignoreDts.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/plugin-dts/tsconfig.json Removes the tinyglobby path alias to stop pointing TS types at the compiled bundle.
packages/plugin-dts/prebundle.config.mjs Switches tinyglobby prebundle entry to an object with ignoreDts: true.
packages/plugin-dts/package.json Updates tinyglobby version to ^0.2.15.
packages/core/tsconfig.json Removes the tinyglobby path alias now that it’s no longer prebundled.
packages/core/src/config.ts Replaces static glob import with dynamic import at point-of-use.
packages/core/rslib.config.ts Removes externals mapping for the previously prebundled tinyglobby.
packages/core/prebundle.config.mjs Removes tinyglobby from prebundled dependencies list.
packages/core/package.json Updates tinyglobby version to ^0.2.15.
.github/renovate.json5 Removes the temporary Renovate ignore for tinyglobby.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@Timeless0911 Timeless0911 changed the title chore(deps): upgrade tinyglobby to v0.2.15 perf(deps): upgrade tinyglobby and use dynamic import Mar 18, 2026
Copy link
Copy Markdown
Member

@fi3ework fi3ework left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any benchmark for the improvement?

@Timeless0911
Copy link
Copy Markdown
Contributor Author

Timeless0911 commented Mar 19, 2026

any benchmark for the improvement?

All these perf related to deps only reduce some cjs-module-lexer time when parse cjs in startup.

@Timeless0911 Timeless0911 force-pushed the david/chore/upgrade-tinyglobby branch from 7acc8fb to 153d082 Compare March 19, 2026 08:17
@Timeless0911 Timeless0911 merged commit e69b227 into main Mar 19, 2026
7 checks passed
@Timeless0911 Timeless0911 deleted the david/chore/upgrade-tinyglobby branch March 19, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants