rollup-plugin-onerror

1.0.0 • Public • Published

rollup-plugin-onerror

Run a callback on errors in your rollup build

Installation

npm i -D rollup-plugin-onerror`

Usage

import onError from 'rollup-plugin-onerror'

export default {
  input: "src/index.js",
  output: {
    file: "dist/bundle.js",
    format: "es",
  },
  plugins: [
    ...
    onError((err) => {
      console.log('There was an Error with your rollup build');
      console.error(err);
    })
  ]
}

Package Sidebar

Install

npm i rollup-plugin-onerror

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

2.3 kB

Total Files

4

Last publish

Collaborators

  • ashubham