When combining AMD modules with RequireJS and the r.js optimizer, is it better to bundle the require.js library with your modules or keep it separate?
There are two ways you can follow: use require library separatly as module loader lib may be replaced with other. Second build separate bundle file with tools, frameworks and libs used on majority of pages. INHO second approach is best practice to follow as there is not huge number of requirejs alternatives.