{"action":"created","issue":{"url":"https://api.github.com/repos/sveltejs/sapper-template/issues/61","repository_url":"https://api.github.com/repos/sveltejs/sapper-template","labels_url":"https://api.github.com/repos/sveltejs/sapper-template/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/sapper-template/issues/61/comments","events_url":"https://api.github.com/repos/sveltejs/sapper-template/issues/61/events","html_url":"https://github.com/sveltejs/sapper-template/issues/61","id":321194626,"number":61,"title":"Loading svelte components from node_modules","user":{"login":"UnwrittenFun","id":3743418,"avatar_url":"https://avatars3.githubusercontent.com/u/3743418?v=4","gravatar_id":"","url":"https://api.github.com/users/UnwrittenFun","html_url":"https://github.com/UnwrittenFun","followers_url":"https://api.github.com/users/UnwrittenFun/followers","following_url":"https://api.github.com/users/UnwrittenFun/following{/other_user}","gists_url":"https://api.github.com/users/UnwrittenFun/gists{/gist_id}","starred_url":"https://api.github.com/users/UnwrittenFun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnwrittenFun/subscriptions","organizations_url":"https://api.github.com/users/UnwrittenFun/orgs","repos_url":"https://api.github.com/users/UnwrittenFun/repos","events_url":"https://api.github.com/users/UnwrittenFun/events{/privacy}","received_events_url":"https://api.github.com/users/UnwrittenFun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T13:49:16Z","updated_at":"2018-05-11T20:04:54Z","closed_at":null,"author_association":"NONE","body":"Few issues making it difficult to load svelte components from the node_modules folder out of the box.\r\n\r\n* Firstly, mainFields is not specified with 'svelte' in it.\r\n* Secondly node_modules is being excluded in the rule to load .html files.\r\n\r\n* And lastly, on the server side, this line is preventing webpack from bundling the svelte component and makes it load it as an external module which fails.\r\nhttps://github.com/sveltejs/sapper-template/blob/280f48f73eefee2995a5b42013565d00d31bb6cd/webpack/server.config.js#L11\r\n"},"comment":{"url":"https://api.github.com/repos/sveltejs/sapper-template/issues/comments/388471778","html_url":"https://github.com/sveltejs/sapper-template/issues/61#issuecomment-388471778","issue_url":"https://api.github.com/repos/sveltejs/sapper-template/issues/61","id":388471778,"user":{"login":"MaxMilton","id":14946546,"avatar_url":"https://avatars1.githubusercontent.com/u/14946546?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxMilton","html_url":"https://github.com/MaxMilton","followers_url":"https://api.github.com/users/MaxMilton/followers","following_url":"https://api.github.com/users/MaxMilton/following{/other_user}","gists_url":"https://api.github.com/users/MaxMilton/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxMilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxMilton/subscriptions","organizations_url":"https://api.github.com/users/MaxMilton/orgs","repos_url":"https://api.github.com/users/MaxMilton/repos","events_url":"https://api.github.com/users/MaxMilton/events{/privacy}","received_events_url":"https://api.github.com/users/MaxMilton/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T20:04:54Z","updated_at":"2018-05-11T20:04:54Z","author_association":"NONE","body":"I've run into this as a blocker too. For the time being, I have to maintain shared components locally for each project but obviously that's undesirable going forward."}}
{"actor":{"display_login":"MaxMilton"}}