export function translate(load) {
  console.log('compiling template:', load.name);
  load.source = 'module.exports = require(\'handlebars\').compile(\'' + load.source
  .replace(/'/g, '\\\'')
  .replace(/[\f]/g, '\\f')
  .replace(/[\b]/g, '\\b')
  .replace(/[\n]/g, '\\n')
  .replace(/[\t]/g, '\\t')
  .replace(/[\r]/g, '\\r')
  .replace(/[\u2028]/g, '\\u2028')
  .replace(/[\u2029]/g, '\\u2029') + '\');';
}

import Handlebars from 'handlebars';

function instantiate(load) {
    console.log('compiling template:', load.name);
    return Handlebars.compile(load.source);
}

export { instantiate };
Remove indirect injected dependancy on handlebars in consuming config.js
Remove indirect injected dependancy on handlebars in consuming config.js
