gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

Error: Unexpected token } #51

Closed shaqtsui closed 10 years ago

shaqtsui commented 10 years ago

It raise cpationed error when parse below code:

function isUseStrict(stmt) {
return options.ecmaVersion >= 5 && stmt.type === "ExpressionStatement" &&
    stmt.expression.type === "Literal" && stmt.expression.value === "use strict";

}

Seems there is a bug on parsing "use strict"

sindresorhus commented 10 years ago

This task just passes your options to the RequireJS compiler. It has nothing to do with the output.