Skip to content

A vite plugin to use mdx with more opinionated features

Notifications You must be signed in to change notification settings

Codpoe/vite-plugin-mdx-plus

Repository files navigation

vite-plugin-mdx-plus

A vite plugin to use mdx with more opinionated features. It's plus!

I have only tested/used this plugin in vite v5, the compatibility with other versions of vite is unknown.

Features

Install

npm install vite-plugin-mdx-plus

Use

vite.config.ts

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { mdxPlus } from 'vite-plugin-mdx-plus';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    mdxPlus(),
    react({ include: /\.([tj]s|md)x?$/ }),
  ],
});

About

A vite plugin to use mdx with more opinionated features

Resources

Stars

Watchers

Forks

Packages

No packages published