From 3c1995c3a33913df6fe22b570cc8f9cb2a22aeb7 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Thu, 24 Jul 2025 22:35:57 -0700 Subject: [PATCH] chore: cleanup --- apps/automated/project.json | 7 ++++++- apps/toolbox/project.json | 6 ++++++ packages/core/globals/index.ts | 10 ---------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/apps/automated/project.json b/apps/automated/project.json index 1043e4d29..6e10fc875 100644 --- a/apps/automated/project.json +++ b/apps/automated/project.json @@ -33,7 +33,12 @@ "forDevice": false, "prepare": false }, - "configurations": {}, + "defaultConfiguration": "main", + "configurations": { + "main": { + "flags": "--env.commonjs" + } + }, "dependsOn": ["^build"] }, "prepare": { diff --git a/apps/toolbox/project.json b/apps/toolbox/project.json index 469bd8ecf..8d4a8772f 100644 --- a/apps/toolbox/project.json +++ b/apps/toolbox/project.json @@ -30,6 +30,12 @@ "forDevice": false, "prepare": false }, + "defaultConfiguration": "main", + "configurations": { + "main": { + "flags": "--env.commonjs" + } + }, "dependsOn": ["^build"] }, "prepare": { diff --git a/packages/core/globals/index.ts b/packages/core/globals/index.ts index 9f6175e36..4114dd873 100644 --- a/packages/core/globals/index.ts +++ b/packages/core/globals/index.ts @@ -252,11 +252,6 @@ global.Experimental = function (target: Object, key?: string | symbol, descripto }; const modules: Map = new Map(); -async function dynamicResolveModule(name: string) { - const result = await import(name); - return result.default || result; -} - console.log(`globals/index, __COMMONJS__:`, __COMMONJS__); global.loadModule = function loadModule(name: string): any { const moduleInfo = modules.get(name); @@ -391,10 +386,5 @@ if (!global.NativeScriptHasPolyfilled) { // installPolyfills('abortcontroller', ['AbortController', 'AbortSignal']); } -declare const jest: any; -function isTestingEnv() { - return typeof jest !== 'undefined' || global.__UNIT_TEST__; -} - // ensure the Application instance is initialized before any other module imports it. import '../application';