fix: snapshot build for android (#7484)

This commit is contained in:
Alexander Vakrilov
2019-07-09 17:50:36 +03:00
committed by Dimitar Topuzov
parent 902916c40d
commit c0db22d5ee

View File

@ -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<string>();
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()) {