vite-plugin-vue3-mdx
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

vite-plugin-vue3-mdx

NPM version

Warning

This plugin is not well tested, if you come to any bug, please feel free to report the issue! Meanwhile, you should be aware of the risk of using this plugin!

Installation

pnpm i -D vite-plugin-vue3-mdx
// vite.config.ts
import { defineConfig } from 'vite'
import mdx from 'vite-plugin-vue3-mdx'
import vueJsx from '@vitejs/plugin-vue-jsx'

export default defineConfig({
  plugins: [
    vueJsx({ include: [/\.[jt]sx$/, /\.mdx?$/] }),
    mdx(),
  ]
})

Extensions

export default defineConfig({
  plugins: [
    // ...
    mdx({
      rehypePlugins: [rehypePrism], // any rehype plugins
      recmaPlugins: [], // any recma plugins
      remarkPlugins: [], // any remark plugins
    }),
  ]
})

For full type declarations, find them in types.

License

MIT License © 2022 widcardw

Package Sidebar

Install

npm i vite-plugin-vue3-mdx

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

1.72 MB

Total Files

6

Last publish

Collaborators

  • widcardw