Skip to content

Commit 4137176

Browse files
author
Chuck Dumont
authored
Merge pull request #61 from chuckdumont/work2
Fix webpack Critical dependency warning
2 parents 0a0a931 + 92a4f0c commit 4137176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DojoAMDRequireDependenciesBlockParserPlugin.js

+1-1
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)