Skip to content

Commit 01e0710

Browse files
r4nd0meddyerburgh
authored andcommitted
fix: handle absolute paths on Windows when resolving paths (#193)
1 parent bf3bece commit 01e0710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compilers/helpers/local-resolve-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const path = require('path')
88
* @returns {String} path - path to the file to import
99
*/
1010
module.exports = function localResolve (to, localPath) {
11-
if (localPath.startsWith('/')) {
11+
if (path.isAbsolute(localPath)) {
1212
return localPath
1313
}
1414
return path.join(path.dirname(to), localPath)

0 commit comments

Comments
 (0)