fix(webapi): Attempt to polyfill with undici imports directly (#6065)
This commit is contained in:
parent
61d47d25c6
commit
4595dd6600
1 changed files with 1 additions and 7 deletions
|
@ -15,7 +15,7 @@ import {
|
|||
WritableStreamDefaultController,
|
||||
WritableStreamDefaultWriter,
|
||||
} from 'node:stream/web'
|
||||
import * as undici from 'undici'
|
||||
import { fetch, File, Headers, Request, Response } from 'undici'
|
||||
import { URLPattern } from 'urlpattern-polyfill'
|
||||
import {
|
||||
cancelAnimationFrame,
|
||||
|
@ -71,12 +71,6 @@ import { initWindow, Window } from './lib/Window'
|
|||
|
||||
import { alert } from './lib/Alert'
|
||||
|
||||
const fetch = undici.fetch
|
||||
const Headers = undici.Headers
|
||||
const Response = undici.Response
|
||||
const Request = undici.Request
|
||||
const File = undici.File
|
||||
|
||||
export {
|
||||
ByteLengthQueuingStrategy,
|
||||
CanvasRenderingContext2D,
|
||||
|
|
Loading…
Add table
Reference in a new issue