diff --git a/packages/webapi/src/ponyfill.ts b/packages/webapi/src/ponyfill.ts index 9be4377c56..036fbc1808 100644 --- a/packages/webapi/src/ponyfill.ts +++ b/packages/webapi/src/ponyfill.ts @@ -1,5 +1,6 @@ // @ts-check import { Event, EventTarget } from 'event-target-shim' // Look into removing when Node 18 is dropped for Node 20 +import { webcrypto as crypto } from 'node:crypto' // Remove when Node 18 is dropped for Node 20 import { ByteLengthQueuingStrategy, CountQueuingStrategy, @@ -14,7 +15,6 @@ import { WritableStreamDefaultController, WritableStreamDefaultWriter, } from 'node:stream/web' // Remove when Node 16 is dropped for Node 18. -import { webcrypto as crypto } from 'node:crypto' // Remove when Node 18 is dropped for Node 20 import { fetch, File, FormData, Headers, Request, Response } from 'undici' // Remove when Node 16 is dropped for Node 18. import { URLPattern } from 'urlpattern-polyfill' import {