False statement in docs/lettable-operators
See original GitHub issueI love lettable operators, but this is a false claim:
Unused operators that are being imported in apps cannot be detected reliably by any sort of build tooling or lint rule. That means that you might import scan, but stop using it, and it’s still being added to your output bundle. With lettable operators, if you’re not using it, a lint rule can pick it up for you.
(emphasis mine)
I’ve been using https://www.npmjs.com/package/rxjs-tslint-rules and it does exactly that - make sure you have the right add
imports per file or project, prevent you from importing the whole rxjs library and error if you import operators that you don’t actually use.
It can also be used to enforce lettable operators by forbidding the add imports completely, so it may be worth a mention.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Yeah
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.