Skip to content

Commit

Permalink
Normalize absolute paths on Windows (#14187)
Browse files Browse the repository at this point in the history
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
  • Loading branch information
atti187 and babel-bot committed Jan 22, 2022
1 parent 4f7b91b commit 1e25a2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -34,5 +34,5 @@ function resolveAbsoluteRuntime(moduleName: string, dirname: string) {
}

export function resolveFSPath(path) {
return require.resolve(path);
return require.resolve(path).replace(/\\/g, "/");
}
@@ -1,4 +1,4 @@
var _asyncToGenerator = require("<CWD>\\packages\\babel-runtime\\helpers\\asyncToGenerator.js");
var _asyncToGenerator = require("<CWD>/packages/babel-runtime/helpers/asyncToGenerator.js");

function test() {
return _test.apply(this, arguments);
Expand Down

0 comments on commit 1e25a2e

Please sign in to comment.