Skip to content

Commit c1f61e4

Browse files
committed
fix: Don't include file path to the generated code
For a reason that's not completely clear webpack emits a path here. Better remove it.
1 parent 27a93e3 commit c1f61e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export default class DocgenPlugin implements webpack.WebpackPluginInstance {
236236
() => tsProgram
237237
),
238238
...generateOptions,
239-
})
239+
}).substring(name.length)
240240
)
241241
);
242242
} else {

0 commit comments

Comments
 (0)