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 committed Feb 28, 2020
1 parent be4087f commit 074e4b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/loader.test.js
Original file line number Diff line number Diff line change
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 [email protected] 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 074e4b3

Please sign in to comment.