You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Current size of "open-lens" renderer -bundle is over 60 MB. There's duplicated instances of dependencies.
There must be something wrong with current setup.
core/static/build/renderer.js
The text was updated successfully, but these errors were encountered:
There’s multiple things that need to be fixed in order to make it work properly.
Library package core needs to make all of it’s dependencies external, which means that they are not included in the bundle.
OpenLens monorepo needs to be changed to use Yarn/NPM workspaces which means that all dependencies are hoisted to root level. This ensures that there’s only one instance of a dependency. Without this, there’s e.g. react installed in packages/core/node_modules and packages/open-lens/node_modules .
The second bullet leads to unknown amount of stuff that needs to be fixed, because it seems that building core doesn’t work properly with workspaces being enabled.
Describe the bug
Current size of "open-lens" renderer -bundle is over 60 MB. There's duplicated instances of dependencies.
There must be something wrong with current setup.
core/static/build/renderer.js
![image](https://user-images.githubusercontent.com/3083083/215991613-beab434c-bb65-4dbf-bd9b-0a22ef4cea84.png)
The text was updated successfully, but these errors were encountered: