Skip to content

Commit 521af9c

Browse files
committed
chore: Drop redundant code
1 parent 19f789b commit 521af9c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/plugin.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,6 @@ export default class DocgenPlugin {
123123
// @ts-ignore
124124
const { module } = parser.state;
125125

126-
// Break the recursion. Without this the plugin will get stuck in
127-
// an eternal loop as dependencies are added.
128-
if (!module.userRequest) {
129-
debugExclude(`Ignoring external module: ${module.userRequest}`);
130-
return;
131-
}
132-
133-
if (module.external) {
134-
debugExclude(`Ignoring external module: ${module.userRequest}`);
135-
return;
136-
}
137-
138126
if (!module.rawRequest) {
139127
debugExclude(
140128
`Ignoring module without "rawRequest": ${module.userRequest}`

0 commit comments

Comments
 (0)