Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 4a5bedc

Browse files
PanayotCankovVasil Chimev
authored and
Vasil Chimev
committed
The vendor-plat.ios.ts is used as JavaScript in JavaScript projects, remove typings (#335)
refactor: the vendor-plat.ios.ts is used as JavaScript in JavaScript projects, remove typings
1 parent 028089b commit 4a5bedc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: templates/vendor-platform.ios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files
22
// Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3
3-
(<any>global).noOp;
3+
void 0;

Diff for: templates/vendor.angular.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Snapshot the ~/app.css and the theme
22
const application = require("application");
33
require("ui/styling/style-scope");
4-
global.registerModule("app.css", () => require("~/app.css"));
4+
global.registerModule("app.css", function() { return require("~/app.css"); });
55
application.loadAppCss();
66

77
require("./vendor-platform");

Diff for: templates/vendor.nativescript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Snapshot the ~/app.css and the theme
22
const application = require("application");
33
require("ui/styling/style-scope");
4-
global.registerModule("app.css", () => require("~/app.css"));
4+
global.registerModule("app.css", function() { return require("~/app.css"); });
55
application.loadAppCss();
66

77
require("./vendor-platform");

0 commit comments

Comments
 (0)