{"action":"created","issue":{"url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/2112","repository_url":"https://api.github.com/repos/MithrilJS/mithril.js","labels_url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/2112/labels{/name}","comments_url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/2112/comments","events_url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/2112/events","html_url":"https://github.com/MithrilJS/mithril.js/issues/2112","id":309924169,"node_id":"MDU6SXNzdWUzMDk5MjQxNjk=","number":2112,"title":"Add ES module export version","user":{"login":"porsager","id":1288405,"node_id":"MDQ6VXNlcjEyODg0MDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1288405?v=4","gravatar_id":"","url":"https://api.github.com/users/porsager","html_url":"https://github.com/porsager","followers_url":"https://api.github.com/users/porsager/followers","following_url":"https://api.github.com/users/porsager/following{/other_user}","gists_url":"https://api.github.com/users/porsager/gists{/gist_id}","starred_url":"https://api.github.com/users/porsager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porsager/subscriptions","organizations_url":"https://api.github.com/users/porsager/orgs","repos_url":"https://api.github.com/users/porsager/repos","events_url":"https://api.github.com/users/porsager/events{/privacy}","received_events_url":"https://api.github.com/users/porsager/received_events","type":"User","site_admin":false},"labels":[{"id":534693727,"node_id":"MDU6TGFiZWw1MzQ2OTM3Mjc=","url":"https://api.github.com/repos/MithrilJS/mithril.js/labels/enhancement","name":"enhancement","color":"fbca04","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-29T22:30:42Z","updated_at":"2018-11-14T00:40:45Z","closed_at":"2018-11-13T23:34:35Z","author_association":"CONTRIBUTOR","body":"Until/if Mithril switches to ES modules, and eg. rollup, it would be nice to have an ES module bundle for mithril and mithril/stream.\r\n\r\nMy suggestion is a simple addition in the form of a new bundle, based on the current one, but changed to use `export default m` and `export { stream }` instead and then add `\"module\": \"mithril.mjs\"` to package.json\r\n\r\nI've just finished support for ES modules in flems (not deployed to main yet), and thought it would be great to be able to do\r\n```\r\nimport m, { stream } from 'mithril'\r\n```\r\n\r\n[Here is a flems example using bss](https://next.flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAGhAGMB7NYmBvEAXwvW10QICsEqdBk2J4IWAA60ATsQAEAIzlhptLHIDkCuHA0AdNAYX5qOgBTADcxbQAmAT0SL8C6mY0BlRjCgAhKACuMBoAlAasIZQgcD4w1MQQ9Ag8ACyIAExsHCCYOHgmOlFCjMw8bAC6rEA)\r\n\r\nWould a pull request for this be welcomed?"},"comment":{"url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/comments/438493792","html_url":"https://github.com/MithrilJS/mithril.js/issues/2112#issuecomment-438493792","issue_url":"https://api.github.com/repos/MithrilJS/mithril.js/issues/2112","id":438493792,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQ5Mzc5Mg==","user":{"login":"isiahmeadows","id":4483844,"node_id":"MDQ6VXNlcjQ0ODM4NDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4483844?v=4","gravatar_id":"","url":"https://api.github.com/users/isiahmeadows","html_url":"https://github.com/isiahmeadows","followers_url":"https://api.github.com/users/isiahmeadows/followers","following_url":"https://api.github.com/users/isiahmeadows/following{/other_user}","gists_url":"https://api.github.com/users/isiahmeadows/gists{/gist_id}","starred_url":"https://api.github.com/users/isiahmeadows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isiahmeadows/subscriptions","organizations_url":"https://api.github.com/users/isiahmeadows/orgs","repos_url":"https://api.github.com/users/isiahmeadows/repos","events_url":"https://api.github.com/users/isiahmeadows/events{/privacy}","received_events_url":"https://api.github.com/users/isiahmeadows/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T00:40:45Z","updated_at":"2018-11-14T00:40:45Z","author_association":"COLLABORATOR","body":"Just found the dupe...sorry!"}}
{"actor":{"display_login":"isiahmeadows"}}