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

Commit

Permalink
fix: rootContext compatibility fix for legacy / v4 (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens authored Dec 16, 2017
1 parent 0c4cdc2 commit 1e4b7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function loader(content) {

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

const context = options.context || this.options.context;
const context = options.context || this.rootContext || this.options && this.options.context

let url = loaderUtils.interpolateName(this, options.name, {
context,
Expand Down

0 comments on commit 1e4b7cf

Please sign in to comment.