We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3bece commit 01e0710Copy full SHA for 01e0710
lib/compilers/helpers/local-resolve-helper.js
@@ -8,7 +8,7 @@ const path = require('path')
8
* @returns {String} path - path to the file to import
9
*/
10
module.exports = function localResolve (to, localPath) {
11
- if (localPath.startsWith('/')) {
+ if (path.isAbsolute(localPath)) {
12
return localPath
13
}
14
return path.join(path.dirname(to), localPath)
0 commit comments