Skip to content

Commit be8e18b

Browse files
fix: import web-streams-polyfill without overriding globals (#385)
1 parent 8fb0aeb commit be8e18b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_shims/node-runtime.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import { Readable } from 'node:stream';
1313
import { type RequestOptions } from '../core';
1414
import { MultipartBody } from './MultipartBody';
1515
import { type Shims } from './registry';
16-
import { ReadableStream } from 'web-streams-polyfill';
16+
17+
// @ts-ignore (this package does not have proper export maps for this export)
18+
import { ReadableStream } from 'web-streams-polyfill/dist/ponyfill.es2018.js';
1719

1820
type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
1921

0 commit comments

Comments
 (0)