Inquirer is bloated - almost 7 MB
We should consider changing it to a lighter alternative. I suggest these packages:
What do you think @sindresorhus ?
Inquirer is mostly bloated because of RxJS, but np depends on RxJS directly too, so switching wouldn't help much. https://packagephobia.now.sh/result?p=rxjs
A better solution is to help RxJS reduce their size. Bump the linked issue and offer to help ;)
Maybe if we use Webpack or something it can be treeshaken...
@sindresorhus Ok, I bumped your issue in the RxJS repo ;)
I think we can close my issue since Inquirer is not a problem here. Also, I realized it would be tricky to use one of the alternative packages since they don't have some useful features, that np uses :smile:
It seems like this can be closed now, as the main problem is on rxjs's side. One thing that comes to mind is that if we move np to use ESM instead of CommonJS, we can import specific parts of rxjs, which should lower the install size.
One thing that comes to mind is that if we move
npto use ESM instead of CommonJS, we can import specific parts ofrxjs, which should lower the install size.
That would only help if we bundled the np code with something like Webpack, which I don't intend to.
Most helpful comment
Maybe if we use Webpack or something it can be treeshaken...