Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1908

Web SDK, ability to import without `import * as Realm ...`

      Problem

      right now, with the Realm Web SDK, you must import the entire SDK with an import alias in import statements, such as:

      import * as Realm from "realm-web";
      

      instead of this, i would like imports to behave as they do for the Node.js/React Native SDKs, so i can just do:

      import Realm from "realm-web";
      
      // or 
      import { App } from "realm-web";
      

      i would like to see this change for the following reasons:

      • consistency with other JS SDK
      • align with industry standards
      • better performance via tree shaking

      Solution

      support the API:

      import Realm from "realm-web";
      

      How important is this improvement for you?

      Would be a major improvement

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: