0.1.1 • Published 4 years ago

vite-plugin-react-mdx v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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: [],
    })
  ],
});