|
|
|
@ -64,9 +64,8 @@ export async function init_render_context() {
|
|
|
|
if (als !== null) return;
|
|
|
|
if (als !== null) return;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// @ts-ignore -- we don't include node types in the production build
|
|
|
|
// @ts-ignore -- we don't include node types in the production build
|
|
|
|
als_import ??= import('node:async_hooks').then((mod) => {
|
|
|
|
als_import ??= import('node:async_hooks').then((hooks) => {
|
|
|
|
const { AsyncLocalStorage } = mod;
|
|
|
|
als = new hooks.AsyncLocalStorage();
|
|
|
|
als = new AsyncLocalStorage();
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
await als_import;
|
|
|
|
await als_import;
|
|
|
|
} catch {}
|
|
|
|
} catch {}
|
|
|
|
|