Skip to content

Commit 25f8637

Browse files
authored
Merge pull request webpack#7010 from webpack/fix/context_dependency_init
Add missing field definition in ContextDependency
2 parents 30da6c5 + 5649b9c commit 25f8637

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)