diff --git a/templates/vendor-platform.ios.ts b/templates/vendor-platform.ios.ts index 1e871ff1..5ce49d81 100644 --- a/templates/vendor-platform.ios.ts +++ b/templates/vendor-platform.ios.ts @@ -1,3 +1,3 @@ // There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files // Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3 -(global).noOp; +void 0; diff --git a/templates/vendor.angular.ts b/templates/vendor.angular.ts index 138107f1..f169ccb7 100644 --- a/templates/vendor.angular.ts +++ b/templates/vendor.angular.ts @@ -1,7 +1,7 @@ // Snapshot the ~/app.css and the theme const application = require("application"); require("ui/styling/style-scope"); -global.registerModule("app.css", () => require("~/app.css")); +global.registerModule("app.css", function() { return require("~/app.css"); }); application.loadAppCss(); require("./vendor-platform"); diff --git a/templates/vendor.nativescript.ts b/templates/vendor.nativescript.ts index c0ef3768..c15be1d5 100644 --- a/templates/vendor.nativescript.ts +++ b/templates/vendor.nativescript.ts @@ -1,7 +1,7 @@ // Snapshot the ~/app.css and the theme const application = require("application"); require("ui/styling/style-scope"); -global.registerModule("app.css", () => require("~/app.css")); +global.registerModule("app.css", function() { return require("~/app.css"); }); application.loadAppCss(); require("./vendor-platform");