During build, following error occurs /node_modules/grunt-durandal/node_modules/requirejs/bin/r.js:22358 function addFile(file, fileUrl) { ^^^^^^^^ Loading "build-durandal.js" tasks...ERROR > > SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function. Broken by commit https://github.com/requirejs/r.js/commit/90f19653c5449df5fe8bd683cae4358bc8dfcf90