{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup-watch/issues/7","repository_url":"https://api.github.com/repos/rollup/rollup-watch","labels_url":"https://api.github.com/repos/rollup/rollup-watch/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup-watch/issues/7/comments","events_url":"https://api.github.com/repos/rollup/rollup-watch/issues/7/events","html_url":"https://github.com/rollup/rollup-watch/issues/7","id":162059848,"number":7,"title":"Error in plugin appears to make watcher process exit under some conditions","user":{"login":"Flaise","id":3682658,"avatar_url":"https://avatars.githubusercontent.com/u/3682658?v=3","gravatar_id":"","url":"https://api.github.com/users/Flaise","html_url":"https://github.com/Flaise","followers_url":"https://api.github.com/users/Flaise/followers","following_url":"https://api.github.com/users/Flaise/following{/other_user}","gists_url":"https://api.github.com/users/Flaise/gists{/gist_id}","starred_url":"https://api.github.com/users/Flaise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flaise/subscriptions","organizations_url":"https://api.github.com/users/Flaise/orgs","repos_url":"https://api.github.com/users/Flaise/repos","events_url":"https://api.github.com/users/Flaise/events{/privacy}","received_events_url":"https://api.github.com/users/Flaise/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-24T01:47:57Z","updated_at":"2016-09-13T18:12:58Z","closed_at":null,"body":"When using rollup-watch directly, without the CLI (which I am doing because I need events to fire in response to build events), errors raised in plugins appear to halt the watching process. Here's some code that should reproduce the issue:\r\n\r\n    // ./build.js\r\n    const rollup = require('rollup');\r\n    const watch = require('rollup-watch');\r\n    const buble = require('rollup-plugin-buble');\r\n    \r\n    watch(rollup, {\r\n        entry: './example/test.js',\r\n        dest: './dist/output.js',\r\n        plugins: [buble()]\r\n    }).on('event', event => console.log(event));\r\n\r\n    // ./example/test.js\r\n    export function a(b) {\r\n        for (let c of b) {\r\n    \r\n        }\r\n    }\r\n\r\nIn terms of output, it displays the `STARTING`, `BUILD_START`, and `ERROR` messages like you might expect but then the Node process exits instead of waiting for me to go fix the input file.\r\n\r\nAm I doing this right? It looks pretty much like the way Rollup's CLI implementation does it, except that the CLI does not end its process, for no reason that I can discern.\r\n\r\nedit:\r\nForgot to note that I've tested this on Node 5 and 6, Mac OS X, npm 3.8.6, rollup 0.32.0, rollup-watch 2.4.0, rollup-plugin-buble 0.11.0."},"comment":{"url":"https://api.github.com/repos/rollup/rollup-watch/issues/comments/246772243","html_url":"https://github.com/rollup/rollup-watch/issues/7#issuecomment-246772243","issue_url":"https://api.github.com/repos/rollup/rollup-watch/issues/7","id":246772243,"user":{"login":"ralphholzmann","id":180760,"avatar_url":"https://avatars.githubusercontent.com/u/180760?v=3","gravatar_id":"","url":"https://api.github.com/users/ralphholzmann","html_url":"https://github.com/ralphholzmann","followers_url":"https://api.github.com/users/ralphholzmann/followers","following_url":"https://api.github.com/users/ralphholzmann/following{/other_user}","gists_url":"https://api.github.com/users/ralphholzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ralphholzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralphholzmann/subscriptions","organizations_url":"https://api.github.com/users/ralphholzmann/orgs","repos_url":"https://api.github.com/users/ralphholzmann/repos","events_url":"https://api.github.com/users/ralphholzmann/events{/privacy}","received_events_url":"https://api.github.com/users/ralphholzmann/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T18:12:58Z","updated_at":"2016-09-13T18:12:58Z","body":"yeah this is particularly frustrating. Going to see if I can PR."}}
{"actor":{"display_login":"ralphholzmann"}}