A Vite plugin that enables Babel transformation during the build process, allowing developers to apply custom Babel plugins and presets. Current version is 0.0.2, but it is marked as deprecated/unmaintained. It only supports Vite 1.x (vite@^1.0.0-rc.9 || ^1.0.0), which is also deprecated. For modern Vite projects (v2+), use official Vite plugins or @rollup/plugin-babel. This plugin is more of a proof-of-concept than a production-ready tool.
npm install vite-babel-pluginVerified import paths — ran on the pinned version, not inferred.
Shows how to use vite-babel-plugin in a Vite config with custom Babel plugins and presets.
Migrate to @rollup/plugin-babel with Vite's rollupOptions.
Upgrade Vite to v2+ and switch to compatible Babel integration.
Use module:false in @babel/preset-env targets or avoid preset-env for library builds.
Run 'npm install vite-babel-plugin --save-dev' and ensure node_modules is present.
Use 'import viteBabel from 'vite-babel-plugin'' for default or 'import { viteBabel } from 'vite-babel-plugin'' for named.Downgrade Vite to 1.x or use an alternative Babel plugin for Vite 2+.