Content
View differences
Updated by Alexander Coles 1 day ago
Much Lodash functionality provided by Lodash is now part of ES6.
[https://youmightnotneed.com/lodash](https://youmightnotneed.com/lodash) provides a guide to various [https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore) lists the methods.
For those useful methods that ES6 does not yet provide, or which would be too cumbersome and risky to hand-roll, we can migrate to lodash-es, an ESM version of lodash which provides enhanced TypeScript support as well as support for tree-shaking.
### Caveats
**Please note that lodash is still a transitive dependency of two dependencies in our stack,** `**i18n-js**` **and** `**@xeokit/xeokit-bim-viewe**`**.** As with the recent jQuery migration, we will not be able to take advantage of tree-shaking until we eliminate the transitive dependencies (although [OP-19600](https://community.openproject.org/work_packages/OP-19600) may help mitigate here).
### Hints for QA
General smoke test would be helpful.
[https://youmightnotneed.com/lodash](https://youmightnotneed.com/lodash) provides a guide to various
For those useful methods that ES6 does not yet provide, or which would be too cumbersome and risky to hand-roll, we can migrate to lodash-es, an ESM version of lodash which provides enhanced TypeScript support as well as support for tree-shaking.
### Caveats
**Please note that lodash is still a transitive dependency of two dependencies in our stack,** `**i18n-js**` **and** `**@xeokit/xeokit-bim-viewe**`**.** As with the recent jQuery migration, we will not be able to take advantage of tree-shaking until we eliminate the transitive dependencies (although [OP-19600](https://community.openproject.org/work_packages/OP-19600) may help mitigate here).
### Hints for QA
General smoke test would be helpful.