Skip to content

Updating node-fetch to v3 #32

Open
@larsgw

Description

@larsgw

From #29 (comment):

node-fetch 3 introduces a lot of breaking changes, the most problematic one being that the package has been converted to an ES module which makes it impossible to import synchronously.

My preferred workaround for this would be to only import node-fetch in the worker process, where asynchronous imports do not matter. This however requires writing a replacement implementation for the Response, Request and Header interfaces in the main process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions