Skip to content

Commit

Permalink
fix(gatsby-plugin-mdx): fix gatsby develop on windows (#31396)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored May 13, 2021
1 parent 3ee94dc commit ae2e2de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/gatsby-plugin-mdx/loaders/mdx-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ module.exports = async function mdxLoader(content) {
if (isolateMDXComponent && !resourceQuery.includes(`type=component`)) {
const { data } = grayMatter(content)

const requestPath = `/${path.relative(
this.rootContext,
this.resourcePath
)}?type=component`
const requestPath = slash(
`/${path.relative(this.rootContext, this.resourcePath)}?type=component`
)

return callback(
null,
Expand Down

0 comments on commit ae2e2de

Please sign in to comment.