Buttons and requireJs

Buttons and requireJs

Worthy7Worthy7 Posts: 8Questions: 3Answers: 0

Each buttons file (buttons.bootstrap.js, buttons.colVis.js etc) defines define( ['jquery', 'datatables.net-bs', 'datatables.net-buttons']
So this causes a problem because then requireJs complains that there is a "Duplicate definition". Am I not supposed to be bundling each buttons.xxx.js file together?

Answers

  • allanallan Posts: 63,457Questions: 1Answers: 10,465 Site admin

    That's the require modules for AMD, rather than a name, so I'm not sure why it would be complaining about a duplicate there. Could you show me your RequireJS configuration and how you are using that please?

    Allan

This discussion has been closed.