Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
[chore] - Remove short references as they are deprecated in later ver…
Browse files Browse the repository at this point in the history
…sions of Nativescript
  • Loading branch information
KkevinLi committed Mar 5, 2019
1 parent 0e88e67 commit 6890621
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions demo/app/vendor-platform.android.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require("application");
require("tns-core-modules/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");
require("tns-core-modules/ui/frame");
require("tns-core-modules/ui/frame/activity");
}
4 changes: 2 additions & 2 deletions demo/app/vendor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Snapshot the ~/app.css and the theme
const application = require("application");
require("ui/styling/style-scope");
const application = require("tns-core-modules/application");
require("tns-core-modules/ui/styling/style-scope");
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
global.registerWebpackModules(appCssContext);
application.loadAppCss();
Expand Down

0 comments on commit 6890621

Please sign in to comment.