From c0db22d5eedd8bc3e5b99d0664af35e2d0925ce1 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Tue, 9 Jul 2019 17:50:36 +0300 Subject: [PATCH] fix: snapshot build for android (#7484) --- .../module-name-resolver/non-bundle-workflow-compat.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts b/tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts index e79c4188a..f6fabdd4b 100644 --- a/tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts +++ b/tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts @@ -1,7 +1,6 @@ import * as fs from "../file-system/file-system"; import * as appCommonModule from "../application/application-common"; -const appFolder = fs.knownFolders.currentApp(); const cache = new Set(); let initialized = false; @@ -10,7 +9,7 @@ function register(name, loader) { } function processFile(file: fs.File) { - const filePathRelativeToApp = file.path.substr(appFolder.path.length + 1); + const filePathRelativeToApp = file.path.substr(fs.knownFolders.currentApp().path.length + 1); const loadContent = () => file.readTextSync(); switch (file.extension.toLocaleLowerCase()) {