Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 1e4b7cf

Browse files
authoredDec 16, 2017
fix: rootContext compatibility fix for legacy / v4 (#237)
1 parent 0c4cdc2 commit 1e4b7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function loader(content) {
1010

1111
validateOptions(schema, options, 'File Loader');
1212

13-
const context = options.context || this.options.context;
13+
const context = options.context || this.rootContext || this.options && this.options.context
1414

1515
let url = loaderUtils.interpolateName(this, options.name, {
1616
context,

0 commit comments

Comments
 (0)
This repository has been archived.