Skip to content

Commit 72591e1

Browse files
Alexander Vakrilovtbozhikov
Alexander Vakrilov
authored andcommitted
fix: make FileSystemResourceLoader sync again (#2040)
1 parent 9568b80 commit 72591e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

nativescript-angular-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-angular",
3-
"version": "8.20.0",
3+
"version": "8.30.0",
44
"description": "An Angular renderer that lets you build mobile apps with NativeScript.",
55
"homepage": "https://www.nativescript.org/",
66
"bugs": "https://github.com/NativeScript/nativescript-angular/issues",

nativescript-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/angular",
3-
"version": "8.20.0",
3+
"version": "8.30.0",
44
"description": "An Angular renderer that lets you build mobile apps with NativeScript.",
55
"homepage": "https://www.nativescript.org/",
66
"bugs": "https://github.com/NativeScript/nativescript-angular/issues",

nativescript-angular/resource-loader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export class FileSystemResourceLoader extends ResourceLoader {
1616
super();
1717
}
1818

19-
get(url: string): Promise<string> {
19+
get(url: string): string {
2020
const resolvedPath = this.resolve(url);
2121

2222
const templateFile = this.fs.fileFromPath(resolvedPath);
2323

24-
return templateFile.readText();
24+
return templateFile.readTextSync();
2525
}
2626

2727
resolve(url: string): string {

0 commit comments

Comments
 (0)