diff --git a/bin/handlebars b/bin/handlebars index b30a1fe19..8ab6afda8 100755 --- a/bin/handlebars +++ b/bin/handlebars @@ -127,7 +127,7 @@ extension = new RegExp('\\.' + extension + '$'); var output = []; if (!argv.simple) { if (argv.amd) { - output.push('define([\'' + argv.handlebarPath + 'handlebars\'], function(Handlebars) {\n'); + output.push('define([\'' + argv.handlebarPath + 'handlebars\'], function(Handlebars) {\n Handlebars = Handlebars["default"];'); } else if (argv.commonjs) { output.push('var Handlebars = require("' + argv.commonjs + '");'); } else {