{"library":"vite-plugin-dayjs","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","typescript"],"install":[{"cmd":"npm install vite-plugin-dayjs","imports":["import vitePluginDayjs from 'vite-plugin-dayjs'","import dayjs from 'dayjs'","import relativeTime from 'dayjs/plugin/relativeTime'","import 'dayjs/locale/zh-cn'"]},{"cmd":"yarn add vite-plugin-dayjs","imports":[]},{"cmd":"pnpm add vite-plugin-dayjs","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-dayjs","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-plugin-dayjs/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Thu Jun 18","next_check":"Sun Jul 26","install_tag":null}}