quick fix for "." resolve

This commit is contained in:
Vladimir Enchev
2015-07-10 11:21:57 +03:00
parent 70a97b1451
commit 7c6897bef7

View File

@ -189,7 +189,7 @@ function loadCustomComponent(componentPath: string, componentName?: string, attr
var fullComponentPathFilePathWithoutExt = componentPath; var fullComponentPathFilePathWithoutExt = componentPath;
if (!fs.File.exists(componentPath)) { if (!fs.File.exists(componentPath) || componentPath === "." || componentPath === "./") {
fullComponentPathFilePathWithoutExt = fs.path.join(fs.knownFolders.currentApp().path, componentPath, componentName); fullComponentPathFilePathWithoutExt = fs.path.join(fs.knownFolders.currentApp().path, componentPath, componentName);
} }