feat(speedup): massively speedup launch times
This commit is contained in:
parent
9dce9017ee
commit
f5ddffdd7b
2 changed files with 3 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ const config = {
|
|||
constModules: {
|
||||
globals: {
|
||||
"bunny-build-info": {
|
||||
version: `"v1.3.7"`
|
||||
version: `"v1.4.0-alpha"`
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue