make import use shared relative path function

This commit is contained in:
Luke Page
2013-02-26 21:15:57 +00:00
parent 290d7a055c
commit 57b41f0ea0

View File

@@ -68,7 +68,7 @@ tree.Import.prototype = {
if (this.rootpath && !(path instanceof tree.URL)) {
var pathValue = path.value;
// Add the base path if the import is relative
if (pathValue && !/^(?:[a-z\-]+:|\/)/.test(pathValue)) {
if (pathValue && env.isPathRelative(pathValue)) {
path.value = this.rootpath + pathValue;
}
}