You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the 4.0 release I want to see if I can figure out how to use TypeScript's path option to remove the requirement to include fetch and FormData in Node.
I think the following will work:
Create a new tsconfig.browser.json and tsconfig.node.json for arcgis-rest-request that extend the existing config.
Create path configs to point a dependencies.ts path to either dependencies/browser.ts or dependencies/node.ts which would export node-fetch and form-data in Node or the native browser fetch and FormData in browsers.
Build browser and Node bundles with their respective configs.