首次发布

This commit is contained in:
peterjia
2025-05-27 13:18:59 +08:00
commit 47a49f9b7a
1349 changed files with 440192 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import {
asyncWrapProviders,
createHook,
executionAsyncId,
executionAsyncResource,
triggerAsyncId
} from "unenv/node/async_hooks";
export {
asyncWrapProviders,
createHook,
executionAsyncId,
executionAsyncResource,
triggerAsyncId
} from "unenv/node/async_hooks";
const workerdAsyncHooks = process.getBuiltinModule("node:async_hooks");
export const { AsyncLocalStorage, AsyncResource } = workerdAsyncHooks;
export default {
/**
* manually unroll unenv-polyfilled-symbols to make it tree-shakeable
*/
asyncWrapProviders,
createHook,
executionAsyncId,
executionAsyncResource,
triggerAsyncId,
/**
* manually unroll workerd-polyfilled-symbols to make it tree-shakeable
*/
AsyncLocalStorage,
AsyncResource
};