AngularNerd
AngularNerd

Reputation: 991

including specific RxJS operators

lodash CLI allows you to generate a package with specific functions like "throttle". Can the same thing be done with RxJS?

Here is the lodash example command:

lodash include=throttle

It generates a 2kb minimized JS file. Hoping for something similar with RxJS.

Upvotes: 1

Views: 49

Answers (1)

OJ Kwon
OJ Kwon

Reputation: 4641

There isn't specific CLI tools to generate those kind of set. RxJS instead recommends import specific operator and let build tools configure it. https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md#build-and-treeshaking

Upvotes: 2

Related Questions