From a69c2b62f2f9046636c25d56ba1cc1a731925f7a Mon Sep 17 00:00:00 2001 From: Guo Yunhe Date: Mon, 21 Nov 2022 18:07:30 +0800 Subject: [PATCH] docs: how to polyfill fetch api --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 977fbe8..d425f9f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ axios.request({ }) ``` -# Note +# Polyfill Fetch API -- Since, this adapter relies on fetch API so it won't work in Node environment +This adapter relies on fetch API which requires Node.js 18+, Chrome 42+, Firefox 40+, Safari 10.1+. + +For older browsers and Node.js, you need to polyfill fetch with [whatwg-fetch](https://www.npmjs.com/package/whatwg-fetch).