Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions demo-ng/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-ng/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
41 changes: 30 additions & 11 deletions demo-ng/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ purpose of the file is to pass control to the app’s first module.
*/

import "./bundle-config";
import * as app from 'application';
import * as app from 'tns-core-modules/application';

app.start({ moduleName: 'main-page' });

Expand Down
6 changes: 3 additions & 3 deletions demo/app/main-page.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EventData, Observable } from "data/observable";
import { ObservableArray } from "data/observable-array";
import { Page } from "ui/page";
import { EventData, Observable } from "tns-core-modules/data/observable";
import { ObservableArray } from "tns-core-modules/data/observable-array";
import { Page } from "tns-core-modules/ui/page";

import { PageChangeEventData } from "nativescript-image-swipe";

Expand Down
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
41 changes: 30 additions & 11 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading