Skip to content

Commit 8f01c0e

Browse files
committed
fix(modules): Work around a circular import in tns-core-modules
1 parent 8af20ad commit 8f01c0e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: nativescript-angular/nativescript.module.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import "globals";
1+
import "tns-core-modules/globals";
2+
// Require application early to work around a circular import
3+
import "tns-core-modules/application";
24
import "./zone-js/dist/zone-nativescript";
35

46
import "reflect-metadata";

Diff for: nativescript-angular/platform-common.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Initial imports and polyfills
2-
import "globals";
2+
import "tns-core-modules/globals";
3+
// Require application early to work around a circular import
4+
import "tns-core-modules/application";
35
import "./zone-js/dist/zone-nativescript";
46
import "reflect-metadata";
57
import "./polyfills/array";

0 commit comments

Comments
 (0)