var _ = require('lodash');

module.exports = function (source) {
  this.cacheable && this.cacheable();
  var template = _.template(source);
  return 'module.exports = ' + template;
};

var _ = require('lodash');
var loaderUtils = require("loader-utils");

module.exports = function (source) {
  this.cacheable && this.cacheable();
  var options = loaderUtils.parseQuery(this.query);
  var template = _.template(source, options);
  return 'module.exports = ' + template;
};

Allow to pass compiler options
Allow to pass compiler options