Does vite-plugin have a dependency on Babel? #523
Replies: 1 comment 1 reply
-
@AkimaLunar yes, Babel is used in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a project that uses SWC instead of Babel and seeing errors like the one below after adding
griffel()
to the plugins array, as per docs here. The errors I am seeing suggest that I need to configure Babel, which I don’t have for this project.Adding
.babelrc
freezes the dev server with errors like:[BABEL] Note: The code generator has deoptimised the styling of .../app/node_modules/.vite/deps/chunk-KDWZNFJ2.js as it exceeds the max of 500KB.
and excludingnode_modules
doesn’t fix it.Either way, ideally Babel doesn’t transpile files at all in this project, because it already has SWC.
Any ideas on how to set up Griffel with this project?
Beta Was this translation helpful? Give feedback.
All reactions