From f5ddffdd7babdfa18215e9beed33c323ec471a05 Mon Sep 17 00:00:00 2001 From: cocobo1 Date: Sun, 16 Nov 2025 19:56:05 +0200 Subject: [PATCH] feat(speedup): massively speedup launch times --- scripts/build.mjs | 2 +- src/entry.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 4c16f2e..899ab6b 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -74,7 +74,7 @@ const config = { constModules: { globals: { "bunny-build-info": { - version: `"v1.3.7"` + version: `"v1.4.0-alpha"` } } }, diff --git a/src/entry.ts b/src/entry.ts index c0f7e4a..5e67916 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -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;