@@ -8,12 +8,13 @@ const tnsCoreModules = path.resolve(__dirname, "..", "tns-core-modules");
88moduleAlias . addPath ( tnsCoreModules ) ;
99moduleAlias . addAliases ( {
1010 // NOTE: require("tns-core-modules/platform") with these aliases will work in node but fail in Angular AoT
11- // "tns-core-modules/platform": path.resolve(__dirname, "polyfills", "platform"),
12- // "tns-core-modules/file-system/file-system-access": path.resolve(__dirname, "polyfills", "file-system-access"),
13- // "tns-core-modules/utils/utils": path.resolve(tnsCoreModules, "utils/utils-common"),
14- // "tns-core-modules/color": path.resolve(tnsCoreModules, "color/color-common"),
15- // "tns-core-modules/ui/styling/font": path.resolve(tnsCoreModules, "ui/styling/font-common"),
16- // "tns-core-modules/ui/styling/background": path.resolve(tnsCoreModules, "ui/styling/background-common"),
11+ "tns-core-modules/platform" : path . resolve ( __dirname , "polyfills" , "platform" ) ,
12+ "tns-core-modules/file-system/file-system-access" : path . resolve ( __dirname , "polyfills" , "file-system-access" ) ,
13+ "tns-core-modules/utils/utils" : path . resolve ( tnsCoreModules , "utils/utils-common" ) ,
14+ "./mainthread-helper" : path . resolve ( __dirname , "polyfills" , "mainthread-helper" ) ,
15+ "tns-core-modules/color" : path . resolve ( tnsCoreModules , "color/color-common" ) ,
16+ "tns-core-modules/ui/styling/font" : path . resolve ( tnsCoreModules , "ui/styling/font-common" ) ,
17+ "tns-core-modules/ui/styling/background" : path . resolve ( tnsCoreModules , "ui/styling/background-common" ) ,
1718
1819 "tns-core-modules" : tnsCoreModules ,
1920 "~" : __dirname
0 commit comments