Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Use forward slashes on relative… (#17048)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and sidharthachatterjee committed Aug 24, 2019
1 parent dcf8958 commit 799f657
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/gatsby-source-filesystem/src/create-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ exports.createFileNode = async (
...parsedSlashed,
absolutePath: slashed,
// Useful for limiting graphql query with certain parent directory
relativeDirectory: path.relative(
pluginOptions.path || process.cwd(),
parsedSlashed.dir
relativeDirectory: slash(
path.relative(pluginOptions.path || process.cwd(), parsedSlashed.dir)
),
}

Expand Down

0 comments on commit 799f657

Please sign in to comment.