Skip to content

Commit

Permalink
Merge branch 'JSteunou-hbs/runtime' into dev-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
emaphp committed Aug 20, 2015
2 parents 3cec906 + 9fa39a4 commit 5435cb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var Handlebars = require('handlebars');
var HbsRuntime = require('handlebars/runtime');
var loaderUtils = require('loader-utils');
var path = require('path');

Expand Down Expand Up @@ -83,8 +84,8 @@ module.exports = function(content) {
// Resolve attributes
source = attributesContext.resolveAttributes(source);

callback(null, 'var Handlebars = require(\'' + require.resolve('handlebars') + '\');\n' +
callback(null, 'var Handlebars = require(\'' + require.resolve('handlebars/runtime') + '\');\n' +
'module.exports = (Handlebars[\'default\'] || Handlebars).template(' + source + ');');
};

module.exports.Handlebars = Handlebars;
module.exports.Handlebars = HbsRuntime;

0 comments on commit 5435cb1

Please sign in to comment.