Skip to content

Commit

Permalink
debug: try to use posix path for esm config
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spyke authored and JLHwung committed Apr 1, 2020
1 parent def25ea commit 28fe5ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/loader.test.js
Expand Up @@ -145,13 +145,14 @@ test.cb("should load ESM config files", t => {
// Use relative path starting with a dot to satisfy module loader.
// https://github.com/nodejs/node/issues/31710
// File urls doesn't work with current resolve@1.12.0 package.
extends:
extends: (
"." +
path.sep +
path.relative(
process.cwd(),
path.resolve(__dirname, "fixtures/babelrc.mjs"),
),
)
).replace(/\\/g, "/"),
babelrc: false,
},
},
Expand Down

0 comments on commit 28fe5ce

Please sign in to comment.