Package Exports
- @docusaurus/mdx-loader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@docusaurus/mdx-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@docusaurus/mdx-loader
Docusaurus webpack loader of MDX
Installation
yarn add @docusaurus/mdx-loaderUsage
// ...
module: {
rules: [
// ...
{
test: /\.mdx?$/,
use: [
'babel-loader',
{
loader: '@docuaurus/mdx-loader',
options: {
// .. See options
}
}
]
}
]
}Options
rehypePlugins
Array of rehype plugins to manipulate the MDXHAST
remarkPlugins
Array of remark plugins to manipulate the MDXAST