hughsk / disc

:chart_with_upwards_trend: Visualise the module tree of browserify project bundles and track down bloat.
http://hughsk.io/disc
Other
1.33k stars 83 forks source link

Handle module.id being null #62

Open patrick-webs opened 7 years ago

patrick-webs commented 7 years ago

Fixes error "TypeError: Path must be a string. Received undefined" when operating on minified output that had been processed by derequire, e.g.

{
  id: undefined,
  source: '"use strict";var Promise=_dereq_("./promise.js")();module.exports=Promise',
  deps: {
    './promise.js': '/Users/username/src/myproject/core/node_modules/bluebird/js/main/promise.js'
  }
}