chokidar icon indicating copy to clipboard operation
chokidar copied to clipboard

Explore shrinking the size of the library by 50% by removing glob support

Open fabiospampinato opened this issue 5 years ago • 1 comments

It seems that about half the size of chokidar comes from glob-related features, I don't actually use any globs with chokidar so I'm kind of paying the weight and startup price for nothing.

I think it could be a good idea to offer a "chokidar-core" version of the library that doesn't support globs directly, and then "chokidar" proper would just provide glob support on top of it, basically as far as the user is concerned "chokidar" would stay the same, but there would be also a much smaller "chokidar-core" version available.

What do you think? I can probably eventually put in the time required for making this change and submit a PR for this.

fabiospampinato avatar Jul 04 '20 21:07 fabiospampinato

Yeah, maybe

paulmillr avatar Jul 05 '20 15:07 paulmillr