Open BruceMacD opened 3 months ago
Maybe also make whatwg-fetch
an optional dependency to prevent users who don't need it from installing it?
# package.json
{
- "dependencies": {
- "whatwg-fetch": "^3.6.20"
- }
+ "peerDependencies": {
+ "whatwg-fetch": "^3.6.20"
+ },
+ "peerDependenciesMeta": {
+ "whatwg-fetch": {
+ "optional": true
+ }
+ }
}
Got over-zealous on the last change to make fetch a dynamic import. This change allows for the same functionality as #125 but it keeps
whatwg-fetch
rather than replacing it withnode-fetch
. This preserves current behavior.