8000 Remove requirement to manually include fetch and FormData in Node · Issue #906 · Esri/arcgis-rest-js · GitHub
[go: up one dir, main page]

Skip to c 8000 ontent
Remove requirement to manually include fetch and FormData in Node #906
@patrickarlt

Description

@patrickarlt

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:

  1. Create a new tsconfig.browser.json and tsconfig.node.json for arcgis-rest-request that extend the existing config.
  2. 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.
  3. Build browser and Node bundles with their respective configs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0