Skip to content

Commit

Permalink
Merge pull request #11831 from Pyrolistical/patch-1
Browse files Browse the repository at this point in the history
Fixed resolve.roots default value
  • Loading branch information
sokra authored Oct 27, 2020
2 parents 2efeb4b + 811395e commit c572c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebpackOptionsDefaulter.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,13 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
options.resolve.plugins.length > 0
);
});
this.set("resolve.roots", "make", options => [options.context]);

this.set("resolveLoader", "call", value => Object.assign({}, value));
this.set("resolveLoader.unsafeCache", true);
this.set("resolveLoader.mainFields", ["loader", "main"]);
this.set("resolveLoader.extensions", [".js", ".json"]);
this.set("resolveLoader.mainFiles", ["index"]);
this.set("resolveLoader.roots", "make", options => [options.context]);
this.set("resolveLoader.cacheWithContext", "make", options => {
return (
Array.isArray(options.resolveLoader.plugins) &&
Expand Down

0 comments on commit c572c15

Please sign in to comment.