From 68906211743dd41234e0d974c20595f9e0b75729 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Tue, 5 Mar 2019 13:58:30 -0500 Subject: [PATCH] [chore] - Remove short references as they are deprecated in later versions of Nativescript --- demo/app/vendor-platform.android.ts | 6 +++--- demo/app/vendor.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demo/app/vendor-platform.android.ts b/demo/app/vendor-platform.android.ts index 16352227..0b99ee56 100644 --- a/demo/app/vendor-platform.android.ts +++ b/demo/app/vendor-platform.android.ts @@ -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"); } diff --git a/demo/app/vendor.ts b/demo/app/vendor.ts index 8a381374..146389a1 100644 --- a/demo/app/vendor.ts +++ b/demo/app/vendor.ts @@ -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();