Improve web compatibility by removing dependencies that need polyfills

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Developer Tools

      We should minimize polyfills needed for our web entry point. Sometimes it's very easy to do, for example by using cross-runtime `readable-stream` package instead of Node's native `stream`.

      We are also forced to create an API client conditionally because of this, currently we can't support Atlas tools in Compass because of node-fetch

      Other times it might involve excluding a certain import (i.e. export) from the web entry point.
      There might be cases where this dependency is easier to polyfill than do anything else; in which case we should consider documenting it better.

      This should improve our web integration and keep the server runtime-independent (as a bonus, this can also help external clients run it in non-Node environments like Cloudflare Workers)
      Created with Jira Integration+ for gagik.amaryan (gagik.amaryan@mongodb.com)

            Assignee:
            Unassigned
            Reporter:
            Gagik Amaryan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: