Skip to content

Commit 5dc1c89

Browse files
authored
Merge pull request webpack#6999 from webpack/fix/lmd_arity
Force LocalModuleDependency arity to 3
2 parents 71d1abf + b7af625 commit 5dc1c89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/dependencies/AMDDefineDependencyParserPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class AMDDefineDependencyParserPlugin {
8181
))
8282
) {
8383
// eslint-disable-line no-cond-assign
84-
dep = new LocalModuleDependency(localModule);
84+
dep = new LocalModuleDependency(localModule, undefined, false);
8585
dep.loc = expr.loc;
8686
parser.state.current.addDependency(dep);
8787
} else {
@@ -122,7 +122,7 @@ class AMDDefineDependencyParserPlugin {
122122
))
123123
) {
124124
// eslint-disable-line no-cond-assign
125-
dep = new LocalModuleDependency(localModule, param.range);
125+
dep = new LocalModuleDependency(localModule, param.range, false);
126126
} else {
127127
dep = this.newRequireItemDependency(param.string, param.range);
128128
}

lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class AMDRequireDependenciesBlockParserPlugin {
7878
))
7979
) {
8080
// eslint-disable-line no-cond-assign
81-
dep = new LocalModuleDependency(localModule);
81+
dep = new LocalModuleDependency(localModule, undefined, false);
8282
dep.loc = expr.loc;
8383
parser.state.current.addDependency(dep);
8484
} else {
@@ -126,7 +126,7 @@ class AMDRequireDependenciesBlockParserPlugin {
126126
))
127127
) {
128128
// eslint-disable-line no-cond-assign
129-
dep = new LocalModuleDependency(localModule, param.range);
129+
dep = new LocalModuleDependency(localModule, param.range, false);
130130
} else {
131131
dep = this.newRequireItemDependency(param.string, param.range);
132132
}

0 commit comments

Comments
 (0)