chore: cleanup

This commit is contained in:
Nathan Walker
2025-07-24 22:35:57 -07:00
parent 41f041e175
commit 3c1995c3a3
3 changed files with 12 additions and 11 deletions

View File

@@ -33,7 +33,12 @@
"forDevice": false,
"prepare": false
},
"configurations": {},
"defaultConfiguration": "main",
"configurations": {
"main": {
"flags": "--env.commonjs"
}
},
"dependsOn": ["^build"]
},
"prepare": {

View File

@@ -30,6 +30,12 @@
"forDevice": false,
"prepare": false
},
"defaultConfiguration": "main",
"configurations": {
"main": {
"flags": "--env.commonjs"
}
},
"dependsOn": ["^build"]
},
"prepare": {

View File

@@ -252,11 +252,6 @@ global.Experimental = function (target: Object, key?: string | symbol, descripto
};
const modules: Map<string, { moduleId: string; loader: ModuleLoader }> = new Map<string, { moduleId: string; loader: ModuleLoader }>();
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';