Open macrozone opened 7 years ago
Sounds great, I'm working on it. In a first step, what if I try to dynamically import the UI module into the boilerplate like: const manulAdminUI = await import('@panter/manul-admin-ui')
? This should already decrease the bundle size of the app itself and speed up initial loading. We could do the same for manul-admin etc. without touching the actual npm modules.
you can lazy load components with meteor 1.5 (rc.5 is out):
there is even this cool https://github.com/thejameskyle/react-loadable:
for our admin-ui there is one gotcha, because this approach needs Loadable to be in your "app-space", not sure if it works properly when done inside an npm-package:
it would be cool if we could do this somehow in the package! Maybe we can use Loadable in the package directly, but i don't know how meteor behaves, if you load someting lazily inside an npm package