A plugin for vite using babel plugin.
demo
current)$ yarn add -D vite-babel-plugin
then in vite.config.js
import babel from "vite-babel-plugin";
export default {
plugins: [
babel(),
],
};
then vite-babel-plugin
will Will read .babelrc
in the root directory of your project.
If this project helped you, you might as well just point a little star, thanks.