-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
2 - S (<= 1 week)
-
4943
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