-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use esbuild instead of babel to transform jsx syntax #187
Comments
good point. this plugin was originally started by copying frontmatter-markdown-loader which is for Webpack, so React's build was still relying on Babel. Decoupling sounds natural choice to me and I'm going to work on someday but use |
Would you accept PRs resolving this issue? |
@lebbe yes if it's compatible with current one! thanks for your offering. |
I am using react and need to display some markdown file.
And when I install vite-plugin-markdown then run dev server, it thorwed an error 'module @babel/preset-react not found' so I have to install it manually.
I just read vite's code about transfroming jsx syntax.It uses esbuild.
I think it is not neccessary to use babel because vite uses esbuild internally.
The text was updated successfully, but these errors were encountered: