Closed igorkamyshev closed 3 years ago
Yeap, because of dual CJS/ESM support, we duplicate every file. We need it for tree-shaking.
And also we have many comments. In the latest 3.1.29 we made this package size 2 times smaller by removing comments on release.
Maybe in 4.x we will split non-secure and async versions to different versions.
Also you can review node_modules/nanoid
content. Feel free to open issue on any unnecessary file there.
Thanks for explanation. I've checked content of node_modules/nanoid
, but decided to ask because it wasn't clear for me.
I've applied https://github.com/antonk52/why-npm-i-so-long to my project and found that
nanoid
took 52.4 kb innode_modules
. Is it expected amount of space?