ali-oss
ali-oss copied to clipboard
node_modules folder ~100 sub packages
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
- 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.