Skip to content

Commit

Permalink
refactor!: remove node-fetch-native polyfill for node (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Jul 25, 2024
1 parent 4d718c2 commit b876713
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"dependencies": {
"consola": "^3.2.3",
"defu": "^6.1.4",
"node-fetch-native": "^1.6.4",
"ohash": "^1.1.3",
"pathe": "^1.1.2",
"ufo": "^1.5.4"
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/presets/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
"isomorphic-fetch": "unenv/runtime/mock/empty",
},

polyfill: ["node-fetch-native/polyfill"],
polyfill: [],

external: [...NodeBuiltinModules],
} as Preset;
1 change: 0 additions & 1 deletion src/runtime/polyfill/fetch.node.ts

This file was deleted.

0 comments on commit b876713

Please sign in to comment.