vite-plugin-optimize-persist weekly downloads statistics
By antfu (15 listings) · npm · Vite plugins
Persist dynamically analyzed deps optimization
vite-plugin-optimize-persist has 4,905 recorded weekly downloads on npm.
About vite-plugin-optimize-persist
vite-plugin-optimize-persist
Persist dynamically analyzed dependencies optimization
Motivation
Vite's dependencies pre-optimization is cool and can improve the DX a lot. While Vite can smartly detect dynamic dependencies, it's on-demanded natural sometimes make the booting up for complex project quite slow.
[vite] new dependencies found: @material-ui/icons/Dehaze, @material-ui/core/Box, @material-ui/core/Checkbox, updating...
[vite] ✨ dependencies updated, reloading page...
[vite] new dependencies found: @material-ui/core/Dialog, @material-ui/core/DialogActions, updating...
[vite] ✨ dependencies updated, reloading page...
[vite] new dependencies found: @material-ui/core/Accordion, @material-ui/core/AccordionSummary, updating...
[vite] ✨ dependencies updated, reloading page...
As you might know, you can explicitly set the dependencies in optimizeDeps.include so they will be optimized once at the server start up for the first time. When you project become more complex, this could be somehow a bit laborious.
With vite-plugin-optimize-persist, it will persist the names of the dynamic dependencies in your package.json so you and your team does not need to be bother by them for the next time.
// package.json
{
// ...
"vite": {
"optimizeDeps": {
"include": [
// managed by `vite-plugin-optimize-persist`
"@material-ui/core/Accordion",
"@material-ui/core/AccordionSummary",
"@material-ui/core/Dialog",
"@material-ui/core/DialogActions",
"@material-ui/icons/Dehaze",
"date-fns/format",
"lodash/debounce",
"lodash/map"
]
}
}
}
Install
npm i -D vite-plugin-optimize-persist vite-plugin-package-config
Add plugin to your vite.config.ts:
// vite.config.ts
import OptimizationPersist from 'vite-plugin-optimize-persist'
import PkgConfig from 'vite-plugin-package-config'
export default {
plugins: [
PkgConfig(),
OptimizationPersist()
]
}
Sponsors
<p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/> </a> </p>License
MIT License © 2021 Anthony Fu
Description from the npm listing.
- vite-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Vite plugins plugins
All 20 vite-plugin-optimize-persist alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-optimize-persist. First seen Oct 27, 2026; last successful collection Oct 27, 2026. See the methodology.