just-use-native-fetch

1.0.0 • Public • Published

just-use-native-fetch

Want 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.

Readme

Keywords

none

Package Sidebar

Install

npm i just-use-native-fetch

Weekly Downloads

110

Version

1.0.0

License

MIT

Unpacked Size

806 B

Total Files

3

Last publish

Collaborators

  • mikemaccana