Preparing for system design interviews?  Try bugzed.com →

Vite Plugin Dayjs

JSON →
library 1.0.2 ·javascript
verified Jun 18, 2026

Vite plugin that automatically converts Day.js CommonJS imports to ESM format for better tree-shaking and smaller bundle sizes. Current version 1.0.2 ships TypeScript types and works with all Day.js plugins and locales. Unlike manual import rewriting, this plugin provides zero-config conversion of dayjs, dayjs/plugin/*, and dayjs/locale/* imports to their ESM counterparts (dayjs/esm/...). It addresses the common footgun where Day.js CJS modules cannot be tree-shaken in Vite builds, leading to larger bundles. The plugin is maintained as part of the antdv-next ecosystem.

total hits 12
actors 5 distinct systems
last hit 25d ago AhrefsBot
GPTBot
4
ClaudeBot
3
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇸🇪 Sweden