Skip to content

Possibility to remove web-streams-polyfill dependency? #135

Closed
@JeDaYoshi

Description

@JeDaYoshi

web-streams-polyfill is used as a dependency of this package, which is only used in streams.cjs as a polyfill fallback for users in <v16.5.0 for ReadableStreams.

However, I personally find it extremely overblown that, in this case, we're pulling a >7 MB dependency for something that might or might not be used, while we're also not using all the available po(l/n)yfills but ponyfill.es2018.js, which considerably (outside of depending of an external package) increases the size of the dependants, such as node-fetch.

Is it possible to include this file inside fetch-blob, or take any other possible solution (while also keeping compatibility with older Node.js versions)? I understand this is relatively low-priority, but I thought I'd at least raise it up for consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions