babel-preset-vite
JSON →A Babel preset that emulates Vite's non-standard functionality in non-Vite environments, primarily for testing with Node.js-based runners. Version 1.1.3 (stable) includes three plugins: babel-plugin-transform-vite-meta-env (import.meta.env), babel-plugin-transform-vite-meta-glob (import.meta.glob), and babel-plugin-transform-vite-meta-hot (import.meta.hot). Each plugin can be individually disabled via preset options. The preset ships TypeScript types and follows a monthly release cadence with bug fixes. Key differentiator: allows code using Vite-specific features to run in Jest or other Node.js test runners without modification.
Traffic · last 30 days ↑43% vs prev 7d
total hits 28
actors 8 distinct systems
last hit 22h ago ByteDance
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · PT
Resources
API endpoints
full doc /v1/registry/babel-preset-vite
compatibility /v1/registry/babel-preset-vite/compatibility