ali-oss icon indicating copy to clipboard operation
ali-oss copied to clipboard

node_modules folder ~100 sub packages

Open ricky11 opened this issue 5 years ago • 0 comments

When npm install ali-oss, the node modules folders create 127 folders including ali-oss folder. (these are dependency)

Expected: When install ali-oss we expect only one folder : ali-oss and all the dependency should be inside this folder.

Reason : We don't know which dependency belong to which parent package. We have other packages also installed, not only ali-oss. It is better to put all the dependency inside ali-oss folder for better package management.

Also for Webpack we can lazy load the chunk 'ali-oss' folder only, but now we cant do it, because all the dependency is outside the parent folder.

Suggestion :- 1)Put all dependency inside ali-oss folder

  1. Create a browser SDK with less function as many API cannot work in the browser so there is no need to download all redundant code to browser if we cant use it.

ricky11 avatar May 20 '20 02:05 ricky11