{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/7520","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/7520/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/7520/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/7520/events","html_url":"https://github.com/webpack/webpack/issues/7520","id":331901885,"node_id":"MDU6SXNzdWUzMzE5MDE4ODU=","number":7520,"title":"AggressiveSplittingPlugin with recordsPath set js goes wrong when compiled second time","user":{"login":"AMDvsTMD","id":9191690,"node_id":"MDQ6VXNlcjkxOTE2OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/9191690?v=4","gravatar_id":"","url":"https://api.github.com/users/AMDvsTMD","html_url":"https://github.com/AMDvsTMD","followers_url":"https://api.github.com/users/AMDvsTMD/followers","following_url":"https://api.github.com/users/AMDvsTMD/following{/other_user}","gists_url":"https://api.github.com/users/AMDvsTMD/gists{/gist_id}","starred_url":"https://api.github.com/users/AMDvsTMD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMDvsTMD/subscriptions","organizations_url":"https://api.github.com/users/AMDvsTMD/orgs","repos_url":"https://api.github.com/users/AMDvsTMD/repos","events_url":"https://api.github.com/users/AMDvsTMD/events{/privacy}","received_events_url":"https://api.github.com/users/AMDvsTMD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T08:56:23Z","updated_at":"2018-06-13T09:21:36Z","closed_at":null,"author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n<!-- Before creating an issue please make sure you are using the latest version of webpack. -->\r\n\r\n# Bug report\r\n\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter. -->\r\n<!-- https://stackoverflow.com/questions/ask?tags=webpack -->\r\n<!-- https://gitter.im/webpack/webpack -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n\r\n**What is the current behavior?**\r\n\r\nI'm using AggressiveSplittingPlugin when set config.recordsPath = path.join(outputPath, 'records.json'); if there is no  records.json it will generate one\r\nthe second time compile the records.json changed even do nothing and the js code in browser gos wrong\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n\r\ndelete records.json compile works ok\r\ncompile  the second time js error\r\n\r\n<!-- A great way to do this is to provide your configuration via a GitHub repo. -->\r\n<!-- Best provide a minimal reproduceable repo with instructions -->\r\n<!-- Repos with too many files or long configs are not suitable -->\r\n<!-- Please only add small snippets of code directly into the issue -->\r\n<!-- https://gist.github.com is a good place for longer code snippets -->\r\n<!-- If your issue is caused by a plugin or loader file the issue on the plugin/loader repo instead. -->\r\n\r\n**What is the expected behavior?**\r\nthis  records.json should not change if nothing did\r\nand js run well\r\n\r\n<!-- \"It should work\" is not a good explaination -->\r\n<!-- Explain how exactly you expecting it to behave -->\r\n\r\n**Other relevant information:**\r\nwebpack version:  4.6.0\r\nNode.js version: 8.10.0\r\nOperating System: windows7\r\nAdditional tools:\r\n"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/396872877","html_url":"https://github.com/webpack/webpack/issues/7520#issuecomment-396872877","issue_url":"https://api.github.com/repos/webpack/webpack/issues/7520","id":396872877,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njg3Mjg3Nw==","user":{"login":"ooflorent","id":168498,"node_id":"MDQ6VXNlcjE2ODQ5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/168498?v=4","gravatar_id":"","url":"https://api.github.com/users/ooflorent","html_url":"https://github.com/ooflorent","followers_url":"https://api.github.com/users/ooflorent/followers","following_url":"https://api.github.com/users/ooflorent/following{/other_user}","gists_url":"https://api.github.com/users/ooflorent/gists{/gist_id}","starred_url":"https://api.github.com/users/ooflorent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooflorent/subscriptions","organizations_url":"https://api.github.com/users/ooflorent/orgs","repos_url":"https://api.github.com/users/ooflorent/repos","events_url":"https://api.github.com/users/ooflorent/events{/privacy}","received_events_url":"https://api.github.com/users/ooflorent/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T09:21:36Z","updated_at":"2018-06-13T09:21:36Z","author_association":"MEMBER","body":"Could you test using the latest webpack version? There have been a lot of fixes on records."}}
{"actor":{"display_login":"ooflorent"}}