payload: {"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/2932","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/2932/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/2932/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/2932/events","html_url":"https://github.com/rollup/rollup/issues/2932","id":455265813,"node_id":"MDU6SXNzdWU0NTUyNjU4MTM=","number":2932,"title":"rollup-plugin-html-module","user":{"login":"Crisfole","id":413237,"node_id":"MDQ6VXNlcjQxMzIzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/413237?v=4","gravatar_id":"","url":"https://api.github.com/users/Crisfole","html_url":"https://github.com/Crisfole","followers_url":"https://api.github.com/users/Crisfole/followers","following_url":"https://api.github.com/users/Crisfole/following{/other_user}","gists_url":"https://api.github.com/users/Crisfole/gists{/gist_id}","starred_url":"https://api.github.com/users/Crisfole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crisfole/subscriptions","organizations_url":"https://api.github.com/users/Crisfole/orgs","repos_url":"https://api.github.com/users/Crisfole/repos","events_url":"https://api.github.com/users/Crisfole/events{/privacy}","received_events_url":"https://api.github.com/users/Crisfole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-06-12T15:01:05Z","updated_at":"2019-06-12T18:00:45Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  ⚡️ katchow! We 💛 issues.\r\n\r\n  Please - do not - remove this template.\r\n  Please - do not - skip or remove parts of this template.\r\n  Or your issue may be closed.\r\n\r\n  👉🏽 Need help or tech support? Please don't open an issue!\r\n  Head to https://gitter.im/rollup/rollup or https://stackoverflow.com/questions/tagged/rollupjs\r\n\r\n  ❤️ Rollup? Please consider supporting our collective:\r\n  👉 https://opencollective.com/rollup/donate\r\n-->\r\n\r\n### Feature Use Case\r\n\r\nI'd love if there was officially supported html module support that handled dependencies correctly.\r\n\r\n### Feature Proposal\r\n\r\nIf I import (or use as an entry) an html file, I want rollup to find all the relevant dependencies (see: [Parcel's HtmlAsset.js](https://github.com/parcel-bundler/parcel/blob/master/packages/core/parcel-bundler/src/assets/HTMLAsset.js#L11-L28)), and emit a chunk for each dependency (replacing the url as appropriate).\r\n\r\nIf this is the wrong place to ask for an official plugin feel free to close.\r\n"},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/501388603","html_url":"https://github.com/rollup/rollup/issues/2932#issuecomment-501388603","issue_url":"https://api.github.com/repos/rollup/rollup/issues/2932","id":501388603,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMTM4ODYwMw==","user":{"login":"Crisfole","id":413237,"node_id":"MDQ6VXNlcjQxMzIzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/413237?v=4","gravatar_id":"","url":"https://api.github.com/users/Crisfole","html_url":"https://github.com/Crisfole","followers_url":"https://api.github.com/users/Crisfole/followers","following_url":"https://api.github.com/users/Crisfole/following{/other_user}","gists_url":"https://api.github.com/users/Crisfole/gists{/gist_id}","starred_url":"https://api.github.com/users/Crisfole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crisfole/subscriptions","organizations_url":"https://api.github.com/users/Crisfole/orgs","repos_url":"https://api.github.com/users/Crisfole/repos","events_url":"https://api.github.com/users/Crisfole/events{/privacy}","received_events_url":"https://api.github.com/users/Crisfole/received_events","type":"User","site_admin":false},"created_at":"2019-06-12T18:00:45Z","updated_at":"2019-06-12T18:00:45Z","author_association":"NONE","body":"I'm definitely not asking you to do it! Looks like it's _definitely_ a dupe of 2873! I'm already working on this because it's sort of a blocker on our ability to use Rollup since plugins like html-fill or html-entry just don't allow the level of control over the output-ted html.\r\n\r\nI _do_ have questions though!\r\n\r\n_Which_ hook would I need to use to setup tracking dependencies for an html file? I assume I'd call `emitAsset` on the parent html file (if it were the entry), and `emitChunk` on the imported files (via link or script). That's one of the several places I'm a bit stuck.\r\n\r\nCan I set this up to have different behavior depending on what file is importing the html? (If it's an entry just create the html asset, if it's a javascript file import it as a string, for example).\r\n\r\nNone of the plugins I see use `addWatchFile` or anything like that...is that mostly automatic? Or do I need to explicitly add watches for each file I emit?"}}
other: {"actor":{"display_login":"Crisfole"}}