bare-module 1.14.6 → 1.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -720,7 +720,7 @@ exports._protocols['file:'] = new Protocol({
|
|
|
720
720
|
specifier = specifier.replace(/^file:/, '')
|
|
721
721
|
|
|
722
722
|
if (specifier[0] === '.') specifier = path.join(dirname, specifier)
|
|
723
|
-
if (specifier
|
|
723
|
+
else if (path.isAbsolute(specifier)) specifier = path.normalize(specifier)
|
|
724
724
|
|
|
725
725
|
return specifier
|
|
726
726
|
},
|