diff --git a/src/bootstrap.js b/src/bootstrap.js index ab57c6dc83cc3683638c13ac881182088916971a..af8939f66a1cf93b3bc9c4f18702d59ebfc14158 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -71,7 +71,7 @@ exports.uriFromPath = function (_path) { /** @type {string} */ let uri; - if (pathName.startsWith('//')) { + if (process.platform === 'win32' && pathName.startsWith('//')) { // specially handle Windows UNC paths uri = encodeURI('file:' + pathName); } else { uri = encodeURI('file://' + pathName);