Open History to see the last commit
1import { showBootError } from "./lib/bootError";
2import { restoreStackTraces, suspendStackTracesForAppImport } from "./lib/bootStackTraces";
3
4// Bundled dev can move UI code into shared chunks. Load it only after this
5// entry runs the React refresh preamble, and catch failures before React mounts.
6suspendStackTracesForAppImport();
7void import("./main")
8 .then(({ startup }) => startup)
9 .catch((error: unknown) => {
10 const duringAppImport = restoreStackTraces();
11 showBootError(error);
12 if (duringAppImport) {
13 console.error(
14 "Stack traces were off while the app's modules loaded (Error.stackTraceLimit = 0), so this error has no stack frames.",
15 );
16 }
17 });