Skip to content

Commit

Permalink
Merge pull request #173 from creeperyang/feature/loaders
Browse files Browse the repository at this point in the history
Fix lodash as dependency #172
  • Loading branch information
jantimon committed Jan 15, 2016
2 parents 64ff092 + 5ec7e2d commit f108db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ module.exports = function (source) {
// Use underscore for a minimalistic loader
var options = loaderUtils.parseQuery(this.query);
var template = _.template(source, options);
return 'var _ = require("lodash"); module.exports = ' + template;
return 'var _ = require("' + require.resolve('lodash') + '");module.exports = ' + template;
};

0 comments on commit f108db0

Please sign in to comment.