lodash.chain was the only reason to continue using the monolithic build: Ampersand uses the modular npm packages. .chain is useful, and I used it heavily, but while https://github.com/lodash/lodash/issues/966 proposes a solution for rolling our own, it was more straightforward to use a combination of nested expressions and intermediate variables, depending on which was more readable. Final bundle size dropped significantly, for both the minified and non-minified variants.
lodash.chain
was the only reason to continue using the monolithic build: Ampersand uses the modular npm packages..chain
is useful, and I used it heavily, but while https://github.com/lodash/lodash/issues/966 proposes a solution for rolling our own, it was more straightforward to use a combination of nested expressions and intermediate variables, depending on which was more readable. Final bundle size dropped significantly, for both the minified and non-minified variants.