-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple duplicates of node resources + source codes #30602
Comments
cc @Microsoft/vscode |
I have tried this: #15981. The ideas was to find extensions that depend on the same node_modules (same id and version) and to pull those one level up to have them shared. Risk was that node_modules might have static state which isn't meant to be shared, eg. the app insight module has a static singleton that cannot be used by different clients. So, the challenge is to know what node_modules can be safely shared across different clients. |
I created microsoft/node-pty#117 which might make the situation a little better by relying on the same version as nsfw. It doesn't solve the issue of the other version being the one in node_modules though. It's a tricky situation as it's very dangerous to depend on a different version of a module than a module specifies. Trying to improve the install experience in other ways might be better than trying to squeeze node_modules as much as possible potentially at the cost of stability.
I believe this was due to a bad publish, created microsoft/node-pty#118 to prevent this in the future.
Sourcemaps rely on this, it's not much overhead for really nice debugging of issues. |
Related #30640 |
To keep the number of issues in our inbox on a manageable level, we're closing issues that have been on the backlog for a long time but haven't gained traction: We look at the number of votes the issue has received and the number of duplicates issues filed. Thanks for your understanding. Happy coding! |
@joaomoreno Can you confirm, this closing was automatically or you do not interested in minimizing size and installation speed of VSCode? |
It was neither automatic nor am I uninterested. The issue was closed simply because we have other ones open. It's just not feasible to carry around 5000 issues, so hard choices need to be made. |
Also: #38825 |
Now, after you mention #38825 - I agree. |
No worries! Thanks for your passion! 👍 |
Can you add some kind of control to reduce duplicates of node modules inside VSCode?
Plus do not put source codes and development examples to release, if it doesn't require.
#28874 was closed => I create new more global bug report.
Source codes inside VSCode:
Development examples inside VSCode:
With already reduced size of lodash ( Axosoft/nsfw#23 ) you can reduce size of next build on 9+MB and 2500+files! => Increase speed of installation on 41%! (currently main reason of slow installation - count of files)
The text was updated successfully, but these errors were encountered: