Skip to content

Commit 5b4d7d7

Browse files
committed
disable full dynamic require by default (require(expr))
webpack#729
1 parent 2f3e0ae commit 5b4d7d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/WebpackOptionsDefaulter.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ function WebpackOptionsDefaulter() {
1818
this.set("resolveLoader", {});
1919

2020
this.set("module.unknownContextRequest", ".");
21+
this.set("module.unknownContextRegExp", false);
2122
this.set("module.unknownContextRecursive", true);
22-
this.set("module.unknownContextRegExp", /^\.\/.*$/);
2323
this.set("module.unknownContextCritical", true);
2424
this.set("module.exprContextRequest", ".");
25-
this.set("module.exprContextRegExp", /^\.\/.*$/);
25+
this.set("module.exprContextRegExp", false);
2626
this.set("module.exprContextRecursive", true);
2727
this.set("module.exprContextCritical", true);
2828
this.set("module.wrappedContextRegExp", /.*/);

0 commit comments

Comments
 (0)