-
Notifications
You must be signed in to change notification settings - Fork 231
Core.JavaScript: Util.ts - other external dependencies #2
Comments
hi patrick, another thing to consider here is that lodash makes individual modules available on npm. so we can cherry pick only the necessary modules if size really is an issue. Personally, I don't see 5kb as too big |
The less external library dependencies we have:
That said, of course we need those kinds of util functions internally as well. So it's a balance of: Do we expose these util functions as a public api? or we just keep it internal only and let other internal code use it as needed? Don't think it's easy to answer that one. More a judgement call than anything. |
Going to close this one - I think great points and we will aim to limit the number dependencies. This is why we have created our own utils library to not take a dependency for a few lines of code. Thanks for the input guys! |
When we're building the Util.ts (general JavaScript helpers/utilities), we will probably start to reflect many of the functions that already exists in underscore.js (http://underscorejs.org/).
Is this a problem? Could it be an idea to depend on it? The production dist is very lightweight (approx 5kb).
The text was updated successfully, but these errors were encountered: