title: How to break r.js build in case of any javascript syntax errors?
body: <p>I am using r.js(2.1.16) and UglifyJS2 and I want to break the build if a file has  <strong>Duplicate data property in object literal</strong> or any javascript syntax error.</p>
  
  <p>Now when I run r.js build with above mentioned errors; build is successful but while running application I am facing issues because of javascript syntax errors.</p>
  
  <p>I have removed following try-catch block in r.js(line number: 24501) file and build started breaking (which is my requirement),</p>
  
  <pre><code>//            try {
                  astRoot = esprima.parse(contents, {
                      loc: true
                  });
  //            } catch (e) {
  //                logger.trace('toTransport skipping ' + path + ': ' +
  //                             e.toString());
  //                return contents;
  //            }
  </code></pre>
  
  <p>Is there any configuration in r.js or UglifyJS2 by which the build can fail in such cases?</p>