Skip to content

Commit 5d33937

Browse files
iansumichael-ciniawsky
authored andcommitted
fix(index): add webpack >= v4.0.0 support (#16)
1 parent 34e6138 commit 5d33937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function pitch() {
1818
emitError: this.emitError,
1919
emitWarning: this.emitWarning,
2020
resolve: this.resolve,
21-
optionsContext: this.options.context,
21+
optionsContext: this.rootContext || this.options.context,
2222
}, (err, r) => {
2323
if (r) {
2424
r.fileDependencies.forEach(d => this.addDependency(d));

0 commit comments

Comments
 (0)