isaacs/rimraf

Dependency bloat

jirutka opened this issue · 4 comments

It adds 25 dependencies to a project using Babel, TypeScript and ESLint. This is completely insane for a simple utility doing just rm -rf with globbing.

https://bundlephobia.com/package/rimraf@5.0.1:
image

https://npmgraph.js.org/?q=rimraf:
image

Thanks for sharing your feelings.

Why are you bundling rimraf for web browsers? 25kb is not even a rounding error server-side.

Why are you bundling rimraf for web browsers?

I’m not, this is just for illustration.

25kb is not even a rounding error server-side.

Size is not what I see as the problem here, the number of dependencies is.

Ok, so are you suggesting that this lib should not have a cli, should not support globs, or that all those things should be inline instead of shared deps in node_modules?

Size is not what I see as the problem here, the number of dependencies is.

You're using babel, typescript, and eslint and you're worried about my 25 deps? Lol

Just use fs.rm if that bothers you.