Skip to content

Commit b226907

Browse files
committed
add missing comments
1 parent 9de934e commit b226907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/dependencies/CommonJsImportsParserPlugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const createRequireCallHandlerFactory = (parser, options, getContext) => {
169169
)
170170
);
171171
} else if (requireOptions.webpackIgnore) {
172+
// Do not instrument `require()` if `webpackIgnore` is `true`
172173
return true;
173174
}
174175
}
@@ -307,6 +308,7 @@ const createProcessResolveHandler = (parser, options, getContext) => {
307308
)
308309
);
309310
} else if (requireOptions.webpackIgnore) {
311+
// Do not instrument `require()` if `webpackIgnore` is `true`
310312
return true;
311313
}
312314
}

0 commit comments

Comments
 (0)