Skip to content

Commit

Permalink
fix(bundle-analyzer): missing module path
Browse files Browse the repository at this point in the history
  • Loading branch information
EYHN committed Feb 24, 2023
1 parent fd1a4b8 commit 6324071
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/bundle-analyzer/src/stats-parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,16 @@ export class StatsParser {
const meta = this.getPackageMeta(fnModule.name)

if (!meta) {
m.name = fnModule.name
m.path = fnModule.name
m.ignored = true
return
}

m.name = meta.name
m.path = meta.path
m.issuers = this.getIssuers(fnModule, meta)
m.ignored = fnModule.name.endsWith('(ignored)')
m.ignored = false
m.version = this.packageVersionMap.get(m.path)
m.realPath = fnModule.name

Expand Down

0 comments on commit 6324071

Please sign in to comment.