Skip to content

Commit 2926cfb

Browse files
author
vakrilov
committed
fix: Import reflect-metadata(needed in JIT mode) before @angular
1 parent 309ed7b commit 2926cfb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: nativescript-angular/platform.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
// Always import platform-common first - because polyfills
1+
// Always reflect-metadata before @angular/core.
2+
// It's needed to handle __metadata calls inside @angular/core
3+
import "reflect-metadata";
4+
5+
// Import platform-common immediately after reflect-metadata - because rest of the polyfills.
26
import {
37
NativeScriptPlatformRef,
48
AppOptions,
59
PlatformFactory,
610
COMMON_PROVIDERS
711
} from "./platform-common";
812

9-
import "reflect-metadata";
10-
1113
import { NSFileSystem } from "./file-system/ns-file-system";
1214

1315
import {

0 commit comments

Comments
 (0)