Remove node-fetch
and other dependencies from typescript sdk
#5468
Labels
dependencies
Pull requests that update a dependency file
feature
Requests for new features.
product/sdk-generator
Fern's SDK Generator that outputs client libraries in 7 languages
Feature Description
Currently even the
fernapi/fern-typescript-browser-sdk
generator import node-fetch andform-data
, this code will fail to build in tools like Vite, because the bundler tries to import Node.js specific libraries and it fails.Please remove
node-fetch
which is no longer needed, since in Node.js 18 fetch and FormData are already globals.Here is the full list of packages you can remove:
fetch
is already available everywhereFormData
is already available everywhere, use that insteadatob
andbtoa
are available everywhereThe text was updated successfully, but these errors were encountered: