{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/1191","repository_url":"https://api.github.com/repos/lhorie/mithril.js","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1191/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1191/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1191/events","html_url":"https://github.com/lhorie/mithril.js/issues/1191","id":168514912,"number":1191,"title":"Mithril rewrite seems to be broken, due to recent bundler changes?","user":{"login":"Bondifrench","id":4905917,"avatar_url":"https://avatars.githubusercontent.com/u/4905917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bondifrench","html_url":"https://github.com/Bondifrench","followers_url":"https://api.github.com/users/Bondifrench/followers","following_url":"https://api.github.com/users/Bondifrench/following{/other_user}","gists_url":"https://api.github.com/users/Bondifrench/gists{/gist_id}","starred_url":"https://api.github.com/users/Bondifrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bondifrench/subscriptions","organizations_url":"https://api.github.com/users/Bondifrench/orgs","repos_url":"https://api.github.com/users/Bondifrench/repos","events_url":"https://api.github.com/users/Bondifrench/events{/privacy}","received_events_url":"https://api.github.com/users/Bondifrench/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-31T12:08:44Z","updated_at":"2016-07-31T12:16:45Z","closed_at":null,"body":"### Description:\r\n\r\nMithril rewrite appears to be broken, when using rawgit [version](https://rawgit.com/lhorie/mithril.js/rewrite/mithril.js) \r\n### Steps to Reproduce:\r\nSee jsbin with simple [example](http://jsbin.com/xelosoqixi/1/edit?html,js,console,output)\r\n\r\n### Expected:\r\n\r\nExpected `Test` to appear in Output\r\n\r\n### Actual:\r\nNothing is displayed and in dev tools console:\r\n````\r\nerror Script error. (line 0)\r\nVM248 mithril.js:1128 Uncaught ReferenceError: module is not defined(anonymous function) @ VM248 mithril.js:1128(anonymous function) @ VM248 mithril.js:1\r\nrunner-3.38.13.min.js:1 error ReferenceError: m is not defined\r\n    at xelosoqixi.js:6:1\r\nVM203 xelosoqixi.js:6 Uncaught ReferenceError: m is not defined\r\n````\r\nWhen looking at the file, it seems Mithril rewrite is encapsulated in a `new function () { }` which prevents of accessing `m`\r\n"},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/236426782","html_url":"https://github.com/lhorie/mithril.js/issues/1191#issuecomment-236426782","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1191","id":236426782,"user":{"login":"isiahmeadows","id":4483844,"avatar_url":"https://avatars.githubusercontent.com/u/4483844?v=3","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":"2016-07-31T12:16:45Z","updated_at":"2016-07-31T12:16:45Z","body":"[Found the offending commit heuristically](https://github.com/lhorie/mithril.js/commit/49c3376db0a82acfbc5c26c918665df687686ff7), although it's not very useful (it's simply rebuilding the bundle)."}}
{"actor":{"display_login":"isiahmeadows"}}