-
We are close to having every official rollup plugin included in the Vite Rollup Plugins compatibility list. Only three remains:
The babel plugin works correctly for vanilla. But I need help understanding how to do the setup when used with Vue. Conceptually, even if it works, I do not know if it is a good idea to recommend using Babel with Vite. If people are using babel to support old browsers, that is covered already by @vite/plugin-legacy. I think I will label the @rollup/plugin-babel as compatible, and add a note or link to an explanation. Maybe it would be useful to add a note in the Vite docs about what is recommended with regard to Babel, as it would probably be a really common question (maybe in a new Q&A section?) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Agreed. I tested it myself and it does work, but the use case is rather rare. It is best to avoid Babel during dev as it brings major perf hits. |
Beta Was this translation helpful? Give feedback.
-
I wonder if esbuild has ability or plugin for macros transformation. babel-plugin-macros is something that indispensable in me for various shortcut and optimization. I mainly use it for effectful.js |
Beta Was this translation helpful? Give feedback.
-
I would like to concur with @DrSensor that macros are the killer feature of Babel that Vite is currently missing https://github.com/jgierer12/awesome-babel-macros |
Beta Was this translation helpful? Give feedback.
Agreed. I tested it myself and it does work, but the use case is rather rare. It is best to avoid Babel during dev as it brings major perf hits.