babel-plugin-date-fns
JSON →A Babel plugin that transforms cherry-picked imports from date-fns (e.g., import { format } from 'date-fns') into direct per-function imports (e.g., import format from 'date-fns/format'), reducing bundle size. Current stable version is 2.0.0, which supports date-fns v2 only; v1.x exists for date-fns v1. Release cadence is low, with major versions tied to date-fns major releases. Compared to manual per-function imports, this plugin automates the transformation with zero config. It is heavily inspired by babel-plugin-lodash and babel-plugin-recharts.
Traffic · last 30 days ↓40% vs prev 7d
total hits 21
actors 7 distinct systems
last hit 1d ago ByteDance
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/babel-plugin-date-fns
compatibility /v1/registry/babel-plugin-date-fns/compatibility