Skip to content

Commit 5649b9c

Browse files
committed
Add missing field definition in ContextDependency
1 parent 55fb1da commit 5649b9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/dependencies/ContextDependency.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class ContextDependency extends Dependency {
1414
super();
1515
this.options = options;
1616
this.userRequest = this.options.request;
17+
this.critical = false;
1718
this.hadGlobalOrStickyRegExp = false;
1819
if (this.options.regExp.global || this.options.regExp.sticky) {
1920
this.options.regExp = null;
@@ -47,6 +48,7 @@ class ContextDependency extends Dependency {
4748
}
4849
}
4950

51+
// TODO remove in webpack 5
5052
Object.defineProperty(ContextDependency.prototype, "async", {
5153
configurable: false,
5254
get() {

0 commit comments

Comments
 (0)