Vite plugin: babel transform performance issue #68
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
wyw-in-js version: v0.5.0
node: v20.10.0
OS: MacOS v14.2.1 (23C71)
Bundler: vite v5.2.6
Description
When updating the vite plugin from
@linaria/vite
v5.0.4 to@wyw-in-js/vite
v0.5.0 we noticed a huge degradation in performance. When profiling the vite build we found that the babel transform took approximately 30s using the new plugin, while it was near negligible with the old one. Below you can see the different in the cpuprofiles between the plugins.Using wyw-in-js:


Using linaria:
Here is our vite.config.ts:
Did anyone else experience this too? I don't immediately see any changes in the babel configuration that could be the cause. We have one very large codegen
.ts
files (77k lines)The text was updated successfully, but these errors were encountered: