lodash

lodash

pmengopmengo Posts: 74Questions: 37Answers: 2

Dattatables is using lodash . My question is how can i avoid loading loadsh if allready loaded

Answers

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    Dattatables is using lodash

    No it isn't :-). DataTables has no dependency other than jQuery.

    Allan

  • Lucho_1312Lucho_1312 Posts: 30Questions: 9Answers: 0

    I found lodash in the code too.. Apparently, it's part of what webpack has built.
    Is there any way to remove it? It's in the datatables.js file that I downloaded from here using the build.

    Thanks!

    Luciano

  • Lucho_1312Lucho_1312 Posts: 30Questions: 9Answers: 0

    I think it's in one of the plugins (PDF, or one of those)

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    DataTables itself does not depend on lodash, nor do any of its first party extensions. It is quite possible the pdfmake uses it.

    Allan

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    It does indeed appear that pdfmake uses lodash, and it contains its own internal one, which is clobbering the global output - see this pdfmake issue.

    pdfmake hasn't been updated since October, so I'm not sure this will be addressed there. I think I need to find a new pdf library...

    Allan

This discussion has been closed.