{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/3106","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/3106/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/3106/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/3106/events","html_url":"https://github.com/webpack/webpack/issues/3106","id":181708783,"number":3106,"title":"Consecutive SyntaxErrors are not reported by webpack --watch","user":{"login":"p-decoraid","id":20952305,"avatar_url":"https://avatars.githubusercontent.com/u/20952305?v=3","gravatar_id":"","url":"https://api.github.com/users/p-decoraid","html_url":"https://github.com/p-decoraid","followers_url":"https://api.github.com/users/p-decoraid/followers","following_url":"https://api.github.com/users/p-decoraid/following{/other_user}","gists_url":"https://api.github.com/users/p-decoraid/gists{/gist_id}","starred_url":"https://api.github.com/users/p-decoraid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-decoraid/subscriptions","organizations_url":"https://api.github.com/users/p-decoraid/orgs","repos_url":"https://api.github.com/users/p-decoraid/repos","events_url":"https://api.github.com/users/p-decoraid/events{/privacy}","received_events_url":"https://api.github.com/users/p-decoraid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/enhancement","name":"enhancement","color":"DDDDDD"},{"url":"https://api.github.com/repos/webpack/webpack/labels/P4:%20Nice%20To%20Have","name":"P4: Nice To Have","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T16:08:47Z","updated_at":"2016-10-07T22:12:40Z","closed_at":null,"body":"\r\n**I'm submitting a bug report**\r\n\r\n\r\n**Webpack version:**\r\n1.13.2\r\n\r\n\r\n**Please tell us about your environment:**\r\nLinux\r\n\r\n\r\n**Current behavior:**\r\n\r\n1. Run  `webpack --watch`\r\n2. Put a syntax error in a source file. Webpack will report that error.\r\n3. Change the source file to have different content, but still have a syntax error. Webpack will not report the new error.\r\n4. Fix all syntax errors in the file. Webpack compiles it and shows a successful compilation.\r\n\r\nIt seems to me that webpack tries to compile every version of the file (based on the fact that once the syntax is fixed, the bundle is built and `--progress` shows output when changing the contents of the file while it still has syntax error(s) in it), but does not report subsequent syntax errors.\r\n\r\n\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo \r\nof the problem along with a gist/jsbin of your webpack configuration.** \r\n\r\nI created a sample repository here: https://github.com/Decor-Aid/webpack-rebuild-repro showing the problem.\r\n\r\n\r\n* **What is the expected behavior?**\r\n\r\nWebpack should report errors in each version of the source file as these are saved to disk.\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\n\r\nIf a source file has multiple syntax errors, `webpack --watch` needs to be manually restarted until all errors are fixed. A situation that results in multiple syntax errors is for example trying to convert an Angular app to a React app - copy-pasting Angular code or templates into a .jsx file will produce tons of errors.\r\n \r\n* **Browser:** \r\n\r\nnot applicable\r\n \r\n* **Language:** \r\n\r\nJS is sufficient\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/252373502","html_url":"https://github.com/webpack/webpack/issues/3106#issuecomment-252373502","issue_url":"https://api.github.com/repos/webpack/webpack/issues/3106","id":252373502,"user":{"login":"p-decoraid","id":20952305,"avatar_url":"https://avatars.githubusercontent.com/u/20952305?v=3","gravatar_id":"","url":"https://api.github.com/users/p-decoraid","html_url":"https://github.com/p-decoraid","followers_url":"https://api.github.com/users/p-decoraid/followers","following_url":"https://api.github.com/users/p-decoraid/following{/other_user}","gists_url":"https://api.github.com/users/p-decoraid/gists{/gist_id}","starred_url":"https://api.github.com/users/p-decoraid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-decoraid/subscriptions","organizations_url":"https://api.github.com/users/p-decoraid/orgs","repos_url":"https://api.github.com/users/p-decoraid/repos","events_url":"https://api.github.com/users/p-decoraid/events{/privacy}","received_events_url":"https://api.github.com/users/p-decoraid/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T22:12:40Z","updated_at":"2016-10-07T22:12:40Z","body":"Enhancement?"}}
{"actor":{"display_login":"p-decoraid"}}