File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/gatsby-plugin-mdx/gatsby Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11const fs = require ( `fs` )
22const path = require ( `path` )
33const babel = require ( `@babel/core` )
4- const { createContentDigest } = require ( `gatsby-core-utils` )
4+ const { createContentDigest, slash } = require ( `gatsby-core-utils` )
55
66const defaultOptions = require ( `../utils/default-options` )
77const {
@@ -221,9 +221,11 @@ class BabelPluginTransformRelativeImports {
221221 const valueAbsPath = path . resolve ( parentFilepath , nodePath )
222222 const replacementPath =
223223 loaders +
224- path . relative (
225- path . join ( cache . directory , MDX_SCOPES_LOCATION ) ,
226- valueAbsPath
224+ slash (
225+ path . relative (
226+ path . join ( cache . directory , MDX_SCOPES_LOCATION ) ,
227+ valueAbsPath
228+ )
227229 )
228230 node . value = replacementPath
229231 }
You can’t perform that action at this time.
0 commit comments