optimize: "none",
// Include dependencies loaded with require
findNestedDependencies: true,
+ // Avoid inserting define() placeholder
+ skipModuleInsertion: true,
// Avoid breaking semicolons inserted by r.js
skipSemiColonInsertion: true,
wrap: {
// Remove empty definitions
contents = contents
- .replace( /define\(\[[^\]]+\]\)[\W\n]+$/, "" );
+ .replace( /define\(\[[^\]]*\]\)[\W\n]+$/, "" );
}
// AMD Name
if ( (amdName = grunt.option( "amd" )) != null && /^exports\/amd$/.test( name ) ) {