refactor(mdx-loader): use vfile.path to access Markdown file path (#6443)

This commit is contained in:
Joshua Chen 2022-01-22 22:28:50 +08:00 committed by GitHub
parent e40cafccd5
commit 3d7ba337c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 22 deletions

View file

@ -128,7 +128,6 @@ export default async function mdxLoader(
transformImage,
{
staticDirs: reqOptions.staticDirs,
filePath,
siteDir: reqOptions.siteDir,
},
],
@ -136,7 +135,6 @@ export default async function mdxLoader(
transformLinks,
{
staticDirs: reqOptions.staticDirs,
filePath,
siteDir: reqOptions.siteDir,
},
],