How to get a internal chartfactor toolkit dependency to reduce downloads


#1

I’m trying to optimize all the bundle size of my project with ChartFactor Toolkit Community Edition and I think that I could reduce some weight from all my dependencies If I could get some of the common ones from the toolkit, there is a way to get lodash, moment, etc.?


#2

hi @bob you can get some libraries from ChartFactor Toolkit (uuid, lodash, chroma-js, jquery, numeral, moment) in this way:

let lodash = cf.getDependency("lodash");

let me know if this answer your question, best regards.


#3

that is exactly what I need, thank you.