{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4419","repository_url":"https://api.github.com/repos/jashkenas/coffeescript","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4419/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4419/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4419/events","html_url":"https://github.com/jashkenas/coffeescript/issues/4419","id":200131962,"number":4419,"title":"CoffeeScript compiler as a CommonJS module","user":{"login":"fatcerberus","id":4097841,"avatar_url":"https://avatars.githubusercontent.com/u/4097841?v=3","gravatar_id":"","url":"https://api.github.com/users/fatcerberus","html_url":"https://github.com/fatcerberus","followers_url":"https://api.github.com/users/fatcerberus/followers","following_url":"https://api.github.com/users/fatcerberus/following{/other_user}","gists_url":"https://api.github.com/users/fatcerberus/gists{/gist_id}","starred_url":"https://api.github.com/users/fatcerberus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatcerberus/subscriptions","organizations_url":"https://api.github.com/users/fatcerberus/orgs","repos_url":"https://api.github.com/users/fatcerberus/repos","events_url":"https://api.github.com/users/fatcerberus/events{/privacy}","received_events_url":"https://api.github.com/users/fatcerberus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-11T15:57:53Z","updated_at":"2017-01-12T01:19:16Z","closed_at":null,"body":"Using the \"core compiler\" here:\r\nhttp://coffeescript.org/v1/browser-compiler/coffee-script.js\r\n\r\n`require('coffee-script')` currently doesn't work - it returns `undefined`.  This prevents me from integrating CoffeeScript support into my Cell compiler without pre-loading the script and polluting the global object as a result.  Any chance this could be changed to allow the compiler to be loaded as a CommonJS module?"},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/272048107","html_url":"https://github.com/jashkenas/coffeescript/issues/4419#issuecomment-272048107","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4419","id":272048107,"user":{"login":"GeoffreyBooth","id":456802,"avatar_url":"https://avatars.githubusercontent.com/u/456802?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffreyBooth","html_url":"https://github.com/GeoffreyBooth","followers_url":"https://api.github.com/users/GeoffreyBooth/followers","following_url":"https://api.github.com/users/GeoffreyBooth/following{/other_user}","gists_url":"https://api.github.com/users/GeoffreyBooth/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffreyBooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffreyBooth/subscriptions","organizations_url":"https://api.github.com/users/GeoffreyBooth/orgs","repos_url":"https://api.github.com/users/GeoffreyBooth/repos","events_url":"https://api.github.com/users/GeoffreyBooth/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffreyBooth/received_events","type":"User","site_admin":false},"created_at":"2017-01-12T01:19:16Z","updated_at":"2017-01-12T01:19:16Z","body":"The only supported environments are Node via `require('coffee-script/register')` and the browser via the browser compiler. There are no plans to support CommonJS in a non-Node environment at this time.\r\n\r\nThe browser compiler only creates a global `CoffeeScript` object, if I’m not mistaken; is this really a problem?"}}
{"actor":{"display_login":"GeoffreyBooth"}}