Skip to content

Commit d3886ce

Browse files
gregmagolanalexeagle
authored andcommitted
fix: node_loader windows fix for RUNFILES_MANIFEST_FILE slashes
1 parent 27e2b68 commit d3886ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/node/node_loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ function resolveToModuleRoot(path) {
101101
* See https://github.com/bazelbuild/bazel/issues/3726
102102
*/
103103
function loadRunfilesManifest(manifestPath) {
104+
// Normalize slashes in manifestPath so they match slashes in manifest file
105+
manifestPath = manifestPath.replace(/\\/g, '/');
106+
104107
log_verbose(`using manifest ${manifestPath}`);
105108

106109
// Create the manifest and reverse manifest maps.

0 commit comments

Comments
 (0)