fix(core): Application handling of nativeApp instance

This commit is contained in:
Nathan Walker
2022-01-14 12:06:31 -08:00
parent 5bba70e57d
commit 6c06c77618
6 changed files with 143 additions and 14 deletions

View File

@@ -1,13 +1,13 @@
// todo: figure out why this worker is including the whole core and not just the Http module
// ie. tree-shaking is not working as expected here. (same setup works in a separate app)
import { initGlobal } from '@nativescript/core/globals/index';
initGlobal();
// import { initGlobal } from '@nativescript/core/globals/index';
// initGlobal();
import { Http } from '@nativescript/core';
import { getString } from '@nativescript/core/http';
declare var postMessage: any;
Http.getString('https://httpbin.org/get').then(
getString('https://httpbin.org/get').then(
function (r) {
postMessage(r);
},