Skip to content

Commit

Permalink
[fix] repeat fix from #797 for #717, in another place
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 10, 2018
1 parent 2d4f651 commit f5bff7b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ export default class ExportMap {

get size() {
let size = this.namespace.size + this.reexports.size
this.dependencies.forEach(dep => size += dep().size)
this.dependencies.forEach(dep => {
const d = dep()
// CJS / ignored dependencies won't exist (#717)
if (d == null) return
size += d.size
})
return size
}

Expand Down

0 comments on commit f5bff7b

Please sign in to comment.