From 5d3393762a7a7634781757023f17c12169a7d265 Mon Sep 17 00:00:00 2001 From: Ian Sutherland Date: Wed, 21 Feb 2018 13:44:15 -0700 Subject: [PATCH] fix(index): add `webpack >= v4.0.0` support (#16) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 4af5015..3a0fd2f 100644 --- a/src/index.js +++ b/src/index.js @@ -18,7 +18,7 @@ function pitch() { emitError: this.emitError, emitWarning: this.emitWarning, resolve: this.resolve, - optionsContext: this.options.context, + optionsContext: this.rootContext || this.options.context, }, (err, r) => { if (r) { r.fileDependencies.forEach(d => this.addDependency(d));