1 min readFeb 5, 2018
The patched operators aren’t tree-shakeable because their patching of Observable.prototype
isn’t statically analyzable.
Have a look at this Rollup example. Note that neither the lettable nor patched map
operators are used, but only the lettable operator is tree shaken. The patching of the prototype is a side effect of the import and there is no exported symbol to indicate whether — or where — it is used.