We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e16a7 commit a658945Copy full SHA for a658945
1 file changed
src/plugin.ts
@@ -185,6 +185,10 @@ export default class DocgenPlugin implements webpack.WebpackPluginInstance {
185
186
// 1. Aggregate modules to process
187
compilation.modules.forEach((module: webpack.Module) => {
188
+ if (!module.nameForCondition) {
189
+ return;
190
+ }
191
+
192
const nameForCondition = module.nameForCondition() || "";
193
194
if (isExcluded(nameForCondition)) {
0 commit comments