A package to use node 18 / the browser's own fetch. Use as a vite alias for node-fetch.
npm install just-use-native-fetchWant to avoid a billion unnecessary polyfills for node and browsers, now node 18 has fetch support and so does every browser?
Of course you do.
Install this package and in your Vite Config
````
export default defineConfig({
...
resolve: {
alias: {
"node-fetch": "just-use-native-fetch",
},
},
...
Yaay.