You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Leonewu
changed the title
use esbuild instead of @preset/react to transform to jsx
use esbuild instead of @preset/react to transform jsx syntax
Jul 24, 2021
Leonewu
changed the title
use esbuild instead of @preset/react to transform jsx syntax
use esbuild instead of @babel/preset-react to transform jsx syntax
Jul 24, 2021
Leonewu
changed the title
use esbuild instead of @babel/preset-react to transform jsx syntax
use esbuild instead of babelto transform jsx syntax
Jul 24, 2021
Leonewu
changed the title
use esbuild instead of babelto transform jsx syntax
use esbuild instead of babel to transform jsx syntax
Jul 24, 2021
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 @babel/core and @babel/preset-react atm if you are eager to use this plugin.
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: