feat(speedup): massively speedup launch times

This commit is contained in:
cocobo1 2025-11-16 19:56:05 +02:00
parent 9dce9017ee
commit f5ddffdd7b
2 changed files with 3 additions and 2 deletions

View file

@ -74,7 +74,7 @@ const config = {
constModules: {
globals: {
"bunny-build-info": {
version: `"v1.3.7"`
version: `"v1.4.0-alpha"`
}
}
},

View file

@ -11,7 +11,8 @@ async function initializeKettu() {
Object.freeze = Object.seal = Object;
await require("@metro/internals/caches").initMetroCache();
await require(".").default();
// "savage" approach of just nuking the await, but the speedup could be amazing
require(".").default();
} catch (e) {
const { ClientInfoManager } = require("@lib/api/native/modules");
const stack = e instanceof Error ? e.stack : undefined;