Skip to content

Commit

Permalink
Merge pull request #62 from Kiniamaro/patch-1
Browse files Browse the repository at this point in the history
fix compatibility issue with webpack 4
  • Loading branch information
at0g committed Mar 4, 2018
2 parents 34ba789 + 05f9b2a commit 31f5c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = function (source) {
hasRun = true;
}

var name = slash(path.relative(root || this.options.context, this.resourcePath));
var name = slash(path.relative(root || this.rootContext || this.options.context, this.resourcePath));

var nunjucksCompiledStr = nunjucks.precompileString(source, {
env: env,
Expand Down

0 comments on commit 31f5c5b

Please sign in to comment.