mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 20:02:54 +02:00
fix: remove useless js-loader in front of mdx-loader (#8972)
This commit is contained in:
parent
905fe7f4b4
commit
d746f689ae
5 changed files with 5 additions and 9 deletions
|
@ -138,7 +138,8 @@ async function ChangelogPlugin(context, options) {
|
|||
'default',
|
||||
);
|
||||
// Redirect the metadata path to our folder
|
||||
config.module.rules[0].use[1].options.metadataPath = (mdxPath) => {
|
||||
const mdxLoader = config.module.rules[0].use[0];
|
||||
mdxLoader.options.metadataPath = (mdxPath) => {
|
||||
// Note that metadataPath must be the same/in-sync as
|
||||
// the path from createData for each MDX.
|
||||
const aliasedPath = aliasedSitePath(mdxPath, context.siteDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue