Skip to content

Commit

Permalink
feat: Enable webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
vakrilov committed Nov 25, 2017
1 parent 67c58e1 commit ea91dba
Show file tree
Hide file tree
Showing 7 changed files with 5,758 additions and 158 deletions.
9 changes: 9 additions & 0 deletions app/vendor-platform.android.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require("application");
if (!global["__snapshot"]) {
// In case snapshot generation is enabled these modules will get into the bundle
// but will not be required/evaluated.
// The snapshot webpack plugin will add them to the tns-java-classes.js bundle file.
// This way, they will be evaluated on app start as early as possible.
require("ui/frame");
require("ui/frame/activity");
}
Empty file added app/vendor-platform.ios.ts
Empty file.
13 changes: 13 additions & 0 deletions app/vendor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require("./vendor-platform");

require("reflect-metadata");
require("@angular/platform-browser");
require("@angular/core");
require("@angular/common");
require("@angular/forms");
require("@angular/http");
require("@angular/router");

require("nativescript-angular/platform-static");
require("nativescript-angular/forms");
require("nativescript-angular/router");
Loading

0 comments on commit ea91dba

Please sign in to comment.