Skip to content

Commit a5ae054

Browse files
committed
Ensure the type of the binding don't change
1 parent 5c8a4bb commit a5ae054

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/dependencies/AMDDefineDependencyParserPlugin.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,8 @@ class AMDDefineDependencyParserPlugin {
223223
}
224224
}
225225
let fnRenames = parser.scope.renames.createChild();
226-
let identifiers;
227226
if (array) {
228-
identifiers = {};
227+
const identifiers = {};
229228
const param = parser.evaluateExpression(array);
230229
const result = this.processArray(
231230
parser,
@@ -244,7 +243,7 @@ class AMDDefineDependencyParserPlugin {
244243
return true;
245244
});
246245
} else {
247-
identifiers = ["require", "exports", "module"];
246+
const identifiers = ["require", "exports", "module"];
248247
if (fnParams)
249248
fnParams = fnParams.slice(fnParamsOffset).filter((param, idx) => {
250249
if (identifiers[idx]) {

0 commit comments

Comments
 (0)