Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
fix(index): add rootContext (this.rootContext) (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
statianzo authored and michael-ciniawsky committed Feb 5, 2018
1 parent 8f09b09 commit 3803ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -10,7 +10,7 @@ module.exports.pitch = function(remainingRequest) {
var query = loaderUtils.getOptions(this) || {};
if(query.name) {
var options = {
context: query.context || this.options.context,
context: query.context || this.rootContext || this.options && this.options.context,
regExp: query.regExp
};
var chunkName = loaderUtils.interpolateName(this, query.name, options);
Expand Down

0 comments on commit 3803ad3

Please sign in to comment.