Skip to content

Commit

Permalink
fix(utils): GetModuleCodeByModuleIds sdk api (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Mar 28, 2024
1 parent 0eb5692 commit 5bed2ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-chairs-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rsdoctor/utils': patch
---

fix(utils): GetModuleCodeByModuleIds sdk api
4 changes: 2 additions & 2 deletions packages/utils/src/common/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ export class APIDataLoader {
let outputFilename = '';

// outputFile is user's repo build config: output.filename. Detial: https://webpack.docschina.org/configuration/output/#outputfilename.
if (typeof configs[0].config?.output?.chunkFilename === 'string') {
outputFilename = configs[0].config.output.chunkFilename;
if (typeof configs[0]?.config?.output?.chunkFilename === 'string') {
outputFilename = configs[0]?.config.output.chunkFilename;
}

return {
Expand Down

0 comments on commit 5bed2ce

Please sign in to comment.