From 63e1bb6075beef172570c7b443bf6fdab1edcf87 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Thu, 7 Dec 2017 09:25:20 +0200 Subject: [PATCH 1/2] The vendor-plat.ios.ts is used as JavaScript in JavaScript projects, remove typings --- templates/vendor-platform.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 9779ea07d5ba49154683d041c320fb635b679f3c Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Thu, 7 Dec 2017 16:06:56 +0200 Subject: [PATCH 2/2] Uglifyable vendor --- templates/vendor.angular.ts | 2 +- templates/vendor.nativescript.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");