We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b37115 commit 2428b14Copy full SHA for 2428b14
lib/dependencies/AMDDefineDependencyParserPlugin.js
@@ -260,9 +260,11 @@ class AMDDefineDependencyParserPlugin {
260
parser.inScope(fnParams, () => {
261
parser.scope.renames = fnRenames;
262
parser.scope.inTry = inTry;
263
- if (fn.body.type === "BlockStatement")
+ if (fn.body.type === "BlockStatement") {
264
parser.walkStatement(fn.body);
265
- else parser.walkExpression(fn.body);
+ } else {
266
+ parser.walkExpression(fn.body);
267
+ }
268
});
269
} else if (fn && isBoundFunctionExpression(fn)) {
270
inTry = parser.scope.inTry;
0 commit comments