From be8e18ba4c6a16e7b6413c77246f83230e0b8fc2 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Tue, 17 Oct 2023 22:52:10 +0100 Subject: [PATCH] fix: import web-streams-polyfill without overriding globals (#385) --- src/_shims/node-runtime.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_shims/node-runtime.ts b/src/_shims/node-runtime.ts index cc16e8542..7d24b7077 100644 --- a/src/_shims/node-runtime.ts +++ b/src/_shims/node-runtime.ts @@ -13,7 +13,9 @@ import { Readable } from 'node:stream'; import { type RequestOptions } from '../core'; import { MultipartBody } from './MultipartBody'; import { type Shims } from './registry'; -import { ReadableStream } from 'web-streams-polyfill'; + +// @ts-ignore (this package does not have proper export maps for this export) +import { ReadableStream } from 'web-streams-polyfill/dist/ponyfill.es2018.js'; type FileFromPathOptions = Omit;