File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- // Always import platform-common first - because polyfills
1+ // Always import 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.
26import {
37 NativeScriptPlatformRef ,
48 AppOptions ,
59 PlatformFactory ,
610 COMMON_PROVIDERS
711} from "./platform-common" ;
812
9- import "reflect-metadata" ;
10-
1113import { NSFileSystem } from "./file-system/ns-file-system" ;
1214
1315import {
@@ -49,7 +51,7 @@ export const NS_COMPILER_PROVIDERS: StaticProvider[] = [
4951 provide : COMPILER_OPTIONS ,
5052 useValue : {
5153 providers : [
52- { provide : NSFileSystem , deps : [ ] } ,
54+ { provide : NSFileSystem , deps : [ ] } ,
5355 { provide : ResourceLoader , useClass : FileSystemResourceLoader , deps : [ NSFileSystem ] } ,
5456 { provide : ElementSchemaRegistry , useClass : NativeScriptElementSchemaRegistry , deps : [ ] } ,
5557 ]
You can’t perform that action at this time.
0 commit comments