Buttons and requireJs
Buttons and requireJs
Worthy7
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?
This discussion has been closed.
Answers
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