Correction du chargement de profils partiels via un chemin relatif au profil parent

このコミットが含まれているのは:
wpetit 2016-04-15 17:00:04 +02:00
コミット 75391a7219
1個のファイルの変更3行の追加2行の削除

ファイルの表示

@ -26,8 +26,9 @@ exports.load = function(profileUrl, withImports) {
node = item.value.node;
// For each import found, load the partial and "mount" it on the current item
if(node.import) {
Logger.info('Loading import "%s"', path.resolve(node.import));
p = exports.load(node.import)
var importPath = path.resolve(path.dirname(profileUrl), node.import)
Logger.info('Loading import "%s"', importPath);
p = exports.load(importPath)
.then(_mountImport.bind(node))
;
promises.push(p);