grunts/grunt-build.js
function (name, path, contents) {
        contents = contents.replace(rDefineStart, '');

        if (rDefineEndWithReturn.test(contents)) {
          contents = contents.replace(rDefineEndWithReturn, '');
        } else {
          contents = contents.replace(rDefineEnd, '');
        }
        return contents;
      }
function (name, path, contents) {
        contents = contents.replace(rDefineStart, '');

        if (rDefineEndWithReturn.test(contents)) {
          contents = contents.replace(rDefineEndWithReturn, '');
        } else {
          contents = contents.replace(rDefineEnd, '');
        }
        return contents;
      }
function ( name , path , contents ) { contents = contents . replace ( rDefineStart , '' ) ; if ( rDefineEndWithReturn . test ( contents ) ) { contents = contents . replace ( rDefineEndWithReturn , '' ) ; } else { contents = contents . replace ( rDefineEnd , '' ) ; } return contents ; }
Strip all definitions generated by requirejs

@param {String} name
@param {String} path
@param {String} contents The contents to be written (including their AMD wrappers)
Strip all definitions generated by requirejs