Skip to content

Commit

Permalink
fix: import web-streams-polyfill without overriding globals (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Oct 17, 2023
1 parent c848b86 commit e774e17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_shims/node-runtime.ts
Expand Up @@ -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<FilePropertyBag, 'lastModified'>;

Expand Down

0 comments on commit e774e17

Please sign in to comment.