Why is node.js buffer included three times?

Why is node.js buffer included three times?

cworrellcworrell Posts: 1Questions: 1Answers: 0

Am I doing something wrong here, because when I do a production build, the buffer module from node.js, for the browser, is included three times in the output file. Is that just expected? Seems like 90% of the file size (2MB) is from those three instances.

import 'jszip'
import pdfmake from 'pdfmake'
import fonts from 'pdfmake/build/vfs_fonts'
import 'datatables.net-bs4'
import 'datatables.net-buttons-bs4'
import 'datatables.net-buttons/js/buttons.html5'
import 'datatables.net-buttons/js/buttons.print'
import 'datatables.net-responsive-bs4'

pdfmake.vfs = fonts.pdfMake.vfs

Answers

  • colincolin Posts: 15,116Questions: 1Answers: 2,583

    Hi @cworrell ,

    I suspect this is a more generic node.js issue, rather than something specific to DataTables. It would be worth posting on StackOverflow.

    Cheers,

    Colin

This discussion has been closed.