Closed aleclarson closed 3 years ago
vite.Plugin
MdxPlugin
mdxOptions
remarkPlugins
rehypePlugins
This feature is used by https://github.com/vitejs/vite-plugin-react-pages/pull/16 to inject remark-frontmatter when it's missing.
remark-frontmatter
https://github.com/aleclarson/vite-plugin-react-pages/blob/d06307d90ea57e260e32e0093b7d50740ca8a043/packages/react-pages/src/node/index.ts#L63-L75
Neat
vite.Plugin
interface asMdxPlugin
which has amdxOptions
propertyremarkPlugins
andrehypePlugins
options are defined, so Vite plugins can search/mutate them easierThis feature is used by https://github.com/vitejs/vite-plugin-react-pages/pull/16 to inject
remark-frontmatter
when it's missing.https://github.com/aleclarson/vite-plugin-react-pages/blob/d06307d90ea57e260e32e0093b7d50740ca8a043/packages/react-pages/src/node/index.ts#L63-L75