Tree shakeable static methods (using rxjs and lodash in alongside)
Tree shakeable static methods (using rxjs and lodash in alongside) I want to use rxjs and lodash or ramda in the same project. I am using typescript with ECMAScript module import statements. (In an ionic project with webpack as the module bundler) rxjs lodash ramda webpack rxjs and lodash-es propagate import statements like this, to enable tree shaking: rxjs lodash-es import { map } from 'lodas-es' import { map } from 'rxjs/operators As you can see, this approach has two problems: Name clashes (I could use an alias, but I think this will lead to more confusion) Very general method names like map , filter etc. are in both libraries present and you always have to look in the import statement, which one is meant and where it came from. map filter The static method approach is much more readable in my opinion, because it is so explicit. I want to keep the syntax like it is in commonjs and also enable tree-shaking. Is this possible somehow? Which alternatives do I have he...
