Skip to content

Conversation

@taylorkle
Copy link

@taylorkle taylorkle commented Oct 27, 2023

Allow developers to conditionally import the optional polyfill with the cross-fetch package to address issue 197 #197

It is unclear if the entire package cross-fetch with ponyfill caused the issue or the use of polyfill alone, but we could consider testing with disabled polyfill first. The polyfill is only applied in the absence of global fetch.

@taylorkle taylorkle marked this pull request as ready for review October 31, 2023 15:57
@jpowers
Copy link
Member

jpowers commented Nov 1, 2023

Looks good and will work, but I think we could probably just remove the polyfill and allow users who need it to load it. This blog post suggests that as well.

https://www.builder.io/blog/stop-polyfilling-fetch-in-your-npm-package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants