Skip to content

Commit

Permalink
fix(gatsby-plugin-mdx): fix slashes for Windows (#17290)
Browse files Browse the repository at this point in the history
  • Loading branch information
universse authored and GatsbyJS Bot committed Sep 1, 2019
1 parent 72b7408 commit 31c9cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby-plugin-mdx/loaders/mdx-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ module.exports = async function(content) {

let fileNode = getNodes().find(
node =>
node.internal.type === `File` && node.absolutePath === this.resourcePath
node.internal.type === `File` &&
node.absolutePath === slash(this.resourcePath)
)
let isFakeFileNode = false
if (!fileNode) {
Expand Down

0 comments on commit 31c9cfa

Please sign in to comment.