Skip to content

Commit 31c9cfa

Browse files
universseGatsbyJS Bot
authored and
GatsbyJS Bot
committed
fix(gatsby-plugin-mdx): fix slashes for Windows (#17290)
1 parent 72b7408 commit 31c9cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gatsby-plugin-mdx/loaders/mdx-loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ module.exports = async function(content) {
9999

100100
let fileNode = getNodes().find(
101101
node =>
102-
node.internal.type === `File` && node.absolutePath === this.resourcePath
102+
node.internal.type === `File` &&
103+
node.absolutePath === slash(this.resourcePath)
103104
)
104105
let isFakeFileNode = false
105106
if (!fileNode) {

0 commit comments

Comments
 (0)