-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
To speed up opening realms we could bundle the node_modules into the renderer bundle.
Also - to enable faster load per window, we could split up and produce one bundle per type of window (using https://webpack.js.org/concepts/entry-points/#multi-page-application).
I've started work here https://github.com/realm/realm-studio/tree/kh/renderer-bundled, but I get warnings from Webpack:
[WEBPACK:R] WARNING in ./node_modules/realm/lib/index.js [WEBPACK:R] 23:11-26 Critical dependency: the request of a dependency is an expression [WEBPACK:R] [WEBPACK:R] WARNING in ./node_modules/realm/lib/user-methods.js [WEBPACK:R] 25:11-26 Critical dependency: the request of a dependency is an expression [WEBPACK:R] [WEBPACK:R] WARNING in ./node_modules/realm/lib/index.js [WEBPACK:R] 94:27-48 Critical dependency: the request of a dependency is an expression