{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/7452","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/7452/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/7452/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/7452/events","html_url":"https://github.com/webpack/webpack/issues/7452","id":327960500,"node_id":"MDU6SXNzdWUzMjc5NjA1MDA=","number":7452,"title":"Hook for modifying entrypoint from plugin","user":{"login":"whs","id":345483,"node_id":"MDQ6VXNlcjM0NTQ4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/345483?v=4","gravatar_id":"","url":"https://api.github.com/users/whs","html_url":"https://github.com/whs","followers_url":"https://api.github.com/users/whs/followers","following_url":"https://api.github.com/users/whs/following{/other_user}","gists_url":"https://api.github.com/users/whs/gists{/gist_id}","starred_url":"https://api.github.com/users/whs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whs/subscriptions","organizations_url":"https://api.github.com/users/whs/orgs","repos_url":"https://api.github.com/users/whs/repos","events_url":"https://api.github.com/users/whs/events{/privacy}","received_events_url":"https://api.github.com/users/whs/received_events","type":"User","site_admin":false},"labels":[{"id":665191202,"node_id":"MDU6TGFiZWw2NjUxOTEyMDI=","url":"https://api.github.com/repos/webpack/webpack/labels/inactive","name":"inactive","color":"000000","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-31T01:26:00Z","updated_at":"2018-12-14T10:01:54Z","closed_at":"2018-12-14T10:01:54Z","author_association":"NONE","body":"<!-- Please don't delete this template or we'll close your issue -->\r\n\r\n## Feature request\r\n\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\n<!-- Before creating an issue please make sure you are using the latest version of webpack. -->\r\n<!-- Check if this feature need to be implemented in a plugin or loader instead -->\r\n<!-- If yes: file the issue on the plugin/loader repo -->\r\n<!-- Features related to the development server should be filed on this repo instead -->\r\n\r\n**What is the expected behavior?**\r\nThere should be a function that allow entrypoint to be changed after the compiler is created, but before compilation has started.\r\n\r\n**What is motivation or use case for adding/changing the behavior?**\r\nSee [this issue in webpack-serve](https://github.com/webpack-contrib/webpack-serve/issues/156#issuecomment-393177870). In short, iterating entrypoints from a compiler, process, and calling `compiler.hooks.entryOption` with the new value does not works well with `runtimeChunk: single` as the old entrypoint plugin will still exists.\r\n\r\n**How should this be implemented in your opinion?**\r\n- Plan A: Creating a registry of active entrypoint plugin instances (MultiEntryPlugin/SingleEntryPlugin/DynamicEntryPlugin), then when EntryOptionPlugin trigger again:\r\n  - A: Ask the old instance of the same entrypoint to deregister.\r\n  - B: Recreate all instances. This allow entrypoints to be removed, but caller now has to send list of ALL entrypoints which is a breaking change.\r\n- Plan B: Investigate in why RuntimeChunkPlugin does not work with duplicated entrypoints. This might resolve this issue, but could run into more issues in the future.\r\n\r\n**Are you willing to work on this yourself?**\r\nIf I have some guideline.\r\n"}}
{"actor":{"display_login":"webpack-bot"}}