fix(addon-docs): pass remark plugins to mdx loader

This commit is contained in:
Yann Braga 2022-07-19 17:47:46 +02:00
parent e9655dfb92
commit b6b6cf176b

View File

@ -54,6 +54,7 @@ export async function webpack(
} = options;
const mdxLoaderOptions = {
// whether to skip storybook files, useful for docs only mdx or md files
skipCsf: true,
remarkPlugins: [remarkSlug, remarkExternalLinks],
};
@ -112,6 +113,10 @@ export async function webpack(
},
{
loader: mdxLoader,
options: {
...mdxLoaderOptions,
skipCsf: false,
},
},
],
},