Skip to content

Return error to Rollup instead of throwing

Before:

bundling...
🚨   (buble plugin) Unexpected token (6:15)
undefined (6:15)

No useful information. Rollup does not log the source file or the error (it does show the line number undefined 6:15).

After:

bundling...
🚨   Unexpected token
index.js (6:15)
4:
5: import { Button, ButtonGroup, HiddenText } from './Button'
6: import { Flash from './Alert'
                  ^

All expected information is logged.

Merge request reports