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

Commit 3803ad3

Browse files
statianzomichael-ciniawsky
authored andcommitted
fix(index): add rootContext (this.rootContext) (#70)
1 parent 8f09b09 commit 3803ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports.pitch = function(remainingRequest) {
1010
var query = loaderUtils.getOptions(this) || {};
1111
if(query.name) {
1212
var options = {
13-
context: query.context || this.options.context,
13+
context: query.context || this.rootContext || this.options && this.options.context,
1414
regExp: query.regExp
1515
};
1616
var chunkName = loaderUtils.interpolateName(this, query.name, options);

0 commit comments

Comments
 (0)