Skip to content

Commit b99fd7c

Browse files
author
chuckd
committed
Fix webpack Critical dependency warning
1 parent 256f17e commit b99fd7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DojoAMDRequireDependenciesBlockParserPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = class DojoAMDRequireDependenciesBlockParserPlugin {
3535
});
3636

3737
parser.plugin("call require", (expr) => {
38-
if (!parser.state.module.isAMD || expr.callee.name !== "require") {
38+
if (!parser.state.module.isAMD || expr.callee.name === "cjsRequire") {
3939
return;
4040
}
4141
switch(expr.arguments.length) {

0 commit comments

Comments
 (0)