{"action":"created","issue":{"url":"https://api.github.com/repos/ethul/purs-loader/issues/32","labels_url":"https://api.github.com/repos/ethul/purs-loader/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/ethul/purs-loader/issues/32/comments","events_url":"https://api.github.com/repos/ethul/purs-loader/issues/32/events","html_url":"https://github.com/ethul/purs-loader/issues/32","id":115536440,"number":32,"title":"PSC is spawned on each import","user":{"login":"natefaubion","id":144058,"avatar_url":"https://avatars.githubusercontent.com/u/144058?v=3","gravatar_id":"","url":"https://api.github.com/users/natefaubion","html_url":"https://github.com/natefaubion","followers_url":"https://api.github.com/users/natefaubion/followers","following_url":"https://api.github.com/users/natefaubion/following{/other_user}","gists_url":"https://api.github.com/users/natefaubion/gists{/gist_id}","starred_url":"https://api.github.com/users/natefaubion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natefaubion/subscriptions","organizations_url":"https://api.github.com/users/natefaubion/orgs","repos_url":"https://api.github.com/users/natefaubion/repos","events_url":"https://api.github.com/users/natefaubion/events{/privacy}","received_events_url":"https://api.github.com/users/natefaubion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethul/purs-loader/labels/type:%20enhancement","name":"type: enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-06T16:15:55Z","updated_at":"2015-11-07T21:09:03Z","closed_at":null,"body":"Every time you import a `.purs` file it spawns a `psc` process. This is mostly harmless, though creates a lot of unnecessary work and will extend your build times as `psc` still has to go through and check which files need to be recompiled.\r\n\r\nMaybe we should write the loader to only emit the shim module, then use a plugin to do all the work at the appropriate point in the pipeline? This would also let us work in #31 as an option. What do you think?"},"comment":{"url":"https://api.github.com/repos/ethul/purs-loader/issues/comments/154752162","html_url":"https://github.com/ethul/purs-loader/issues/32#issuecomment-154752162","issue_url":"https://api.github.com/repos/ethul/purs-loader/issues/32","id":154752162,"user":{"login":"ethul","id":350411,"avatar_url":"https://avatars.githubusercontent.com/u/350411?v=3","gravatar_id":"","url":"https://api.github.com/users/ethul","html_url":"https://github.com/ethul","followers_url":"https://api.github.com/users/ethul/followers","following_url":"https://api.github.com/users/ethul/following{/other_user}","gists_url":"https://api.github.com/users/ethul/gists{/gist_id}","starred_url":"https://api.github.com/users/ethul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethul/subscriptions","organizations_url":"https://api.github.com/users/ethul/orgs","repos_url":"https://api.github.com/users/ethul/repos","events_url":"https://api.github.com/users/ethul/events{/privacy}","received_events_url":"https://api.github.com/users/ethul/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T21:09:03Z","updated_at":"2015-11-07T21:09:03Z","body":"Thanks for the gist. Noted on the bundle.js."}}