pull/17350/head
Elliott Johnson 1 week ago
parent b96d02d1ef
commit d711ab2f47

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

Loading…
Cancel
Save