mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
quick fix for "." resolve
This commit is contained in:
@ -189,7 +189,7 @@ function loadCustomComponent(componentPath: string, componentName?: string, attr
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user