Unverified Commit c6dafda0 authored by Travis Arnold's avatar Travis Arnold Committed by GitHub

(next/mdx) set providerImportSource to react by default (#39954)

Hello, this PR simply configures the `next/mdx` package to use `{ providerImportSource: '@mdx-js/react' }` by default. This is now [required in version 2](https://mdxjs.com/packages/mdx/#optionsproviderimportsource) and causes a lot of confusion personally because `MDXProvider` seems to not work when all is needed is to set this option.
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent e5997dce
......@@ -11,7 +11,10 @@ module.exports =
options.defaultLoaders.babel,
{
loader: require.resolve('@mdx-js/loader'),
options: pluginOptions.options,
options: {
providerImportSource: '@mdx-js/react',
...pluginOptions.options,
},
},
],
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment