{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/312","repository_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin","labels_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/312/comments","events_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/312/events","html_url":"https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/312","id":332706149,"node_id":"MDU6SXNzdWUzMzI3MDYxNDk=","number":312,"title":"NameCache option and parallel option do not work together","user":{"login":"truebden","id":1792119,"node_id":"MDQ6VXNlcjE3OTIxMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1792119?v=4","gravatar_id":"","url":"https://api.github.com/users/truebden","html_url":"https://github.com/truebden","followers_url":"https://api.github.com/users/truebden/followers","following_url":"https://api.github.com/users/truebden/following{/other_user}","gists_url":"https://api.github.com/users/truebden/gists{/gist_id}","starred_url":"https://api.github.com/users/truebden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truebden/subscriptions","organizations_url":"https://api.github.com/users/truebden/orgs","repos_url":"https://api.github.com/users/truebden/repos","events_url":"https://api.github.com/users/truebden/events{/privacy}","received_events_url":"https://api.github.com/users/truebden/received_events","type":"User","site_admin":false},"labels":[{"id":584651344,"node_id":"MDU6TGFiZWw1ODQ2NTEzNDQ=","url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/labels/priority:%205%20(nice%20to%20have)","name":"priority: 5 (nice to have)","color":"bfdadc","default":false},{"id":584651413,"node_id":"MDU6TGFiZWw1ODQ2NTE0MTM=","url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/labels/semver:%20Patch","name":"semver: Patch","color":"006b75","default":false},{"id":584651354,"node_id":"MDU6TGFiZWw1ODQ2NTEzNTQ=","url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/labels/severity:%203%20(broken)","name":"severity: 3 (broken)","color":"BF4133","default":false},{"id":523046171,"node_id":"MDU6TGFiZWw1MjMwNDYxNzE=","url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/labels/type:%20Bug","name":"type: Bug","color":"FC4349","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-15T09:29:16Z","updated_at":"2018-06-15T10:15:37Z","closed_at":"2018-06-15T09:40:17Z","author_association":"NONE","body":"### Current: ###\r\nIf you enabled the option parallel and the uglifyOption nameCache. The name cache is always empty.\r\n### Example: ###\r\n```\r\n    var nameCache = {};\r\n    plugins: [ew UglifyJSPlugin({\r\n        uglifyOptions: {\r\n            nameCache: nameCache\r\n        },\r\n        parallel: true\r\n    })]\r\n```\r\n### Tested with versions: ###\r\n```\r\n    \"uglifyjs-webpack-plugin\": \"1.2.5\",\r\n    \"webpack\": \"3.12.0\",\r\n```\r\n\r\n### Expected: ###\r\nEither enhance documentation that this is not possible (due to no possibility of syncing the cache) and show a log message if both options are used. Or ensure the nameCache is filled even if parallel option is enabled."},"comment":{"url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/comments/397577825","html_url":"https://github.com/webpack-contrib/uglifyjs-webpack-plugin/issues/312#issuecomment-397577825","issue_url":"https://api.github.com/repos/webpack-contrib/uglifyjs-webpack-plugin/issues/312","id":397577825,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU3NzgyNQ==","user":{"login":"truebden","id":1792119,"node_id":"MDQ6VXNlcjE3OTIxMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1792119?v=4","gravatar_id":"","url":"https://api.github.com/users/truebden","html_url":"https://github.com/truebden","followers_url":"https://api.github.com/users/truebden/followers","following_url":"https://api.github.com/users/truebden/following{/other_user}","gists_url":"https://api.github.com/users/truebden/gists{/gist_id}","starred_url":"https://api.github.com/users/truebden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truebden/subscriptions","organizations_url":"https://api.github.com/users/truebden/orgs","repos_url":"https://api.github.com/users/truebden/repos","events_url":"https://api.github.com/users/truebden/events{/privacy}","received_events_url":"https://api.github.com/users/truebden/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T10:15:37Z","updated_at":"2018-06-15T10:15:37Z","author_association":"NONE","body":"@evilebottnawi Maybe you can give me a hint about it. Because I think you would need a synchronized access to the name cache for all parallel running uglifyjs instances. For this I checked in uglifyjs code if it would be possible to define some callback for each identifier to mangle. But there is no such feature.\r\n\r\nIf it is not possible to synchronize the access, each process would override the map."}}
{"actor":{"display_login":"truebden"}}