Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: unbundle tinyglobby #19487

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

benmccann
Copy link
Collaborator

Description

As discussed on Discord, there may be some benefit to very selectively unbundling some of Vite's dependencies. The time to download Vite can actually be reduced by unbundling if the dependency is also used by the framework or tools being setup alongside vite as it means we only download the copy from npm rather than both the copy from npm and bundled copy.

tinyglobby is used by vitest, solidstart, vitepress, nx, vike, nuxt, unimport (used by tanstack start), vite-plugin-checker, and vite-plugin-pwa. There was a PR for Astro that needs to be refreshed. svelte doesn't use tinyglobby yet, but may soon and we do use both of its dependencies already. Other libraries adjacent to the ecosystem like eslint-import-resolver-typescript, tsup, and unocss use it as well.

@benmccann benmccann added the dependencies Pull requests that update a dependency file label Feb 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant