vite-plugin-import
JSON →Component modular import plugin for Vite (v0.4.0, last updated 2021). Converts named imports like `import { Button } from 'antd'` into path-level imports (e.g., `antd/lib/button`) to reduce bundle size, leveraging babel-plugin-import under the hood. Works primarily in build mode by default. Requires Vite 2. Note that tree-shakable libraries (like antd) do not need this plugin, as Vite handles unused code removal. Faster than combining `@rollup/plugin-babel` with babel-plugin-import, but limited to import transformation only.
Traffic · last 30 days stale · no recent hits
total hits 19
actors 5 distinct systems
last hit 25d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · VN · MY
Resources
API endpoints
full doc /v1/registry/vite-plugin-import
compatibility /v1/registry/vite-plugin-import/compatibility