Skip to content

Commit

Permalink
Fixed resolve.roots default
Browse files Browse the repository at this point in the history
#11207 intended to have `resolve.roots` to have a default value, but was typo'd
  • Loading branch information
Pyrolistical committed Oct 26, 2020
1 parent 2efeb4b commit 811395e
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 811395e

Please sign in to comment.