Vite Plugin for Moment Timezone Data Optimization

JSON →
library 0.0.4 ·javascript
verified May 27, 2026

vite-plugin-moment-timezone is a Vite plugin designed to optimize bundle size by selectively stripping unneeded time zone data from the `moment-timezone` library during the build phase. This is particularly useful for applications that only require a subset of time zones or a specific date range, as `moment-timezone` can be quite large. The current stable version is 0.0.4. Given its low version number and explicit mention of "extremely limited testing" and being "new," it does not yet have a predictable release cadence and should be used with caution, thoroughly testing builds before deployment. Its key differentiator is providing build-time tree-shaking for `moment-timezone` data within a Vite environment, allowing configuration of `zones`, `startYear`, and `endYear` to significantly reduce the final JavaScript bundle size compared to including all available `moment-timezone` data.

total hits 19
actors 7 distinct systems
last hit 19h ago human
GPTBot
5
MetaBot
4
Script
1
Search engines
3
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · TN · 🇩🇪 Germany · 🇫🇮 Finland