Recommend client-side friendly modules#25
Conversation
|
I'm not quite sure about this one. I'm less inclined right now to merge this one. There is no unmanageable risk, just that, I don't feel it's the role of library to do that.
This change would not prevent that to happen again in your project. The library didn't had those dependencies listed before, they were completely "optional" when targeting. How does this impact the The package is quite clear that pulling I'll need to think deeper about it. |
|
Hi @maoueh thank you for the thoughtful response. This PR does not impact your UMD build, so I don't intend for this PR to relate to #23 in any way. What this PR would accomplish is recommending the most fool-proof libraries for developers to use with this library. In regards to
The situation we found ourselves in last week was a production error where we quickly had to copy-paste in the sample code from this repo. It's our fault in the end for not making the necessary changes since we have a NextJS app, but nonetheless, this could be prevented in the future with the documentation changes proposed here. My idea is that using I understand if you want to close this, but I'm not seeing the downsides here. Is this change harmful to the documentation? |
✨ This PR does not change the library usage in any way, it's strictly bug prevention. ✨
A PR from the team at Everipedia
Replace all node-only packages with isomorphic packages
I'll begin by saying that if we had done this last week, this would have saved ~2 developer days.
node-fetchcauses errors like this)Or these:
