fix: remove useless js-loader in front of mdx-loader (#8972)

This commit is contained in:
Sébastien Lorber 2023-05-12 16:31:39 +02:00 committed by GitHub
parent 905fe7f4b4
commit d746f689ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 9 deletions

View file

@ -186,7 +186,7 @@ export default function pluginContentPages(
);
},
configureWebpack(config, isServer, {getJSLoader}) {
configureWebpack() {
const {
admonitions,
rehypePlugins,
@ -209,7 +209,6 @@ export default function pluginContentPages(
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
.map(addTrailingPathSeparator),
use: [
getJSLoader({isServer}),
{
loader: require.resolve('@docusaurus/mdx-loader'),
options: {