Run callback on errors in your rollup build
github.com/ashubham/rollup-plugin-onerror
ashubham/rollup-plugin-onerror