`cb` can be provided as a string (bundle file name), so there probably needs to be a conditional here. Something like this maybe?

```js
if (err && opts.output) throw err
if (err) return cb(err)
```