A tiny utility package (v1.0.0, no release cadence) that provides an alias for node-fetch, redirecting to the native fetch API available in Node.js 18+ and modern browsers. It avoids unnecessary polyfills and simplifies configuration in Vite projects. Differentiator: minimal alternative to node-fetch for environments where native fetch is sufficient.
npm install just-use-native-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to alias node-fetch to use native fetch in Vite, then use fetch normally.
Upgrade Node.js to 18+ or use a real polyfill like node-fetch.
Use node-fetch directly or check compatibility of your fetch options with native fetch.
Use only in supported environments.
Use dynamic import() or switch to ESM: add 'type': 'module' in package.json or use .mjs extension.
Upgrade Node.js to 18+ or polyfill with node-fetch. Ensure you are not using this package in unsupported environments.
Run npm install just-use-native-fetch and double-check the resolve alias in vite.config.js.
No dependency data recorded yet.