首次发布
This commit is contained in:
31
node_modules/@cloudflare/unenv-preset/dist/runtime/node/async_hooks.mjs
generated
vendored
Normal file
31
node_modules/@cloudflare/unenv-preset/dist/runtime/node/async_hooks.mjs
generated
vendored
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user