{"action":"created","issue":{"url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/60","repository_url":"https://api.github.com/repos/pcardune/handlebars-loader","labels_url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/60/comments","events_url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/60/events","html_url":"https://github.com/pcardune/handlebars-loader/pull/60","id":109504823,"number":60,"title":"Point runtime to the built version rather than the CJS version","user":{"login":"jcreamer898","id":472487,"avatar_url":"https://avatars.githubusercontent.com/u/472487?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreamer898","html_url":"https://github.com/jcreamer898","followers_url":"https://api.github.com/users/jcreamer898/followers","following_url":"https://api.github.com/users/jcreamer898/following{/other_user}","gists_url":"https://api.github.com/users/jcreamer898/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreamer898/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreamer898/subscriptions","organizations_url":"https://api.github.com/users/jcreamer898/orgs","repos_url":"https://api.github.com/users/jcreamer898/repos","events_url":"https://api.github.com/users/jcreamer898/events{/privacy}","received_events_url":"https://api.github.com/users/jcreamer898/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-02T14:43:33Z","updated_at":"2016-05-24T15:42:23Z","closed_at":"2016-05-24T15:17:57Z","pull_request":{"url":"https://api.github.com/repos/pcardune/handlebars-loader/pulls/60","html_url":"https://github.com/pcardune/handlebars-loader/pull/60","diff_url":"https://github.com/pcardune/handlebars-loader/pull/60.diff","patch_url":"https://github.com/pcardune/handlebars-loader/pull/60.patch"},"body":"Handlebars 4.0 introduced a new runtime. When you simply `require(\"handlebars/runtime);`, it pulls in `dist/handlebars/cjs/handlebars.runtime.js` which actually contains `require` statements. If you exclude the `node_modules` directory from babel, those require statements get left in there and not processed correctly. This is leading to very strange behavior in the browser where if there's a bug, the debugger is showing Handlebars runtime files such as SafeString...\r\n\r\n![](http://d.pr/i/16dBC+)\r\n\r\nThe  simple fix was to point to the non CJS version of the Handlebars Runtime which is what `handlebars-loader` used to point to in the 3.x version of Handlebars."},"comment":{"url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/comments/221313073","html_url":"https://github.com/pcardune/handlebars-loader/pull/60#issuecomment-221313073","issue_url":"https://api.github.com/repos/pcardune/handlebars-loader/issues/60","id":221313073,"user":{"login":"jcreamer898","id":472487,"avatar_url":"https://avatars.githubusercontent.com/u/472487?v=3","gravatar_id":"","url":"https://api.github.com/users/jcreamer898","html_url":"https://github.com/jcreamer898","followers_url":"https://api.github.com/users/jcreamer898/followers","following_url":"https://api.github.com/users/jcreamer898/following{/other_user}","gists_url":"https://api.github.com/users/jcreamer898/gists{/gist_id}","starred_url":"https://api.github.com/users/jcreamer898/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcreamer898/subscriptions","organizations_url":"https://api.github.com/users/jcreamer898/orgs","repos_url":"https://api.github.com/users/jcreamer898/repos","events_url":"https://api.github.com/users/jcreamer898/events{/privacy}","received_events_url":"https://api.github.com/users/jcreamer898/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T15:42:23Z","updated_at":"2016-05-24T15:42:23Z","body":"Whoops, sorry, let me have a look again. Heh."}}
{"actor":{"display_login":"jcreamer898"}}