vite-plugin-react-mdx
v0.1.1
Published
vite plugin for react and mdx
Downloads
3
Readme
vite-plugin-react-mdx
vite plugin for react and mdx
Install
pnpm add vite-plugin-react-mdx @mdx-js/react
# or
yarn add ...
Usage
Add the plugin to your vite.config.ts
import { defineConfig } from 'vite';
import reactMdx from 'vite-plugin-react-mdx';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
reactMdx({
// See https://mdxjs.com/advanced/plugins
remarkPlugins: [
// E.g. `remark-frontmatter`
],
rehypePlugins: [],
})
],
});