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 5acbe2f commit 5ab6972Copy full SHA for 5ab6972
lib/Parser.js
@@ -1047,6 +1047,14 @@ class Parser extends Tapable {
1047
}
1048
1049
walkNewExpression(expression) {
1050
+ const callee = this.evaluateExpression(expression.callee);
1051
+ if(callee.isIdentifier()) {
1052
+ const result = this.applyPluginsBailResult("new " + callee.identifier, expression);
1053
+ if(result === true) {
1054
+ return;
1055
+ }
1056
1057
+
1058
this.walkExpression(expression.callee);
1059
if(expression.arguments)
1060
this.walkExpressions(expression.arguments);
0 commit comments