{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/650","labels_url":"https://api.github.com/repos/6to5/6to5/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/650/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/650/events","html_url":"https://github.com/6to5/6to5/issues/650","id":56130094,"number":650,"title":"Support for module in karma","user":{"login":"janbaer","id":528331,"avatar_url":"https://avatars.githubusercontent.com/u/528331?v=3","gravatar_id":"","url":"https://api.github.com/users/janbaer","html_url":"https://github.com/janbaer","followers_url":"https://api.github.com/users/janbaer/followers","following_url":"https://api.github.com/users/janbaer/following{/other_user}","gists_url":"https://api.github.com/users/janbaer/gists{/gist_id}","starred_url":"https://api.github.com/users/janbaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janbaer/subscriptions","organizations_url":"https://api.github.com/users/janbaer/orgs","repos_url":"https://api.github.com/users/janbaer/repos","events_url":"https://api.github.com/users/janbaer/events{/privacy}","received_events_url":"https://api.github.com/users/janbaer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-31T16:27:51Z","updated_at":"2015-02-01T10:06:38Z","closed_at":null,"body":"I'm trying to use the karma-6to6 preprocessor to export a module with the es6 syntax and the import it in a jasmine test, but it doesn't works.\r\n\r\nThis is my exported function.\r\n\r\n````\r\nexport function bar() {\r\n  return 'bar';\r\n}\r\n`````\r\n\r\nI imported it in my test, but when I try to execute my test I get the following error on the console \r\n\r\n````\r\nReferenceError: Can't find variable: exports\r\nat module1.es5.js:3\r\n````\r\n````\r\n\"use strict\"\r\nnexports.bar = bar;\r\n\r\nfunction bar() {\r\n  return \"bar\"\r\n}\r\n\r\n````\r\n\r\nmodule1.js contains the exported function. Where is here the problem?\r\n"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/72358834","html_url":"https://github.com/6to5/6to5/issues/650#issuecomment-72358834","issue_url":"https://api.github.com/repos/6to5/6to5/issues/650","id":72358834,"user":{"login":"janbaer","id":528331,"avatar_url":"https://avatars.githubusercontent.com/u/528331?v=3","gravatar_id":"","url":"https://api.github.com/users/janbaer","html_url":"https://github.com/janbaer","followers_url":"https://api.github.com/users/janbaer/followers","following_url":"https://api.github.com/users/janbaer/following{/other_user}","gists_url":"https://api.github.com/users/janbaer/gists{/gist_id}","starred_url":"https://api.github.com/users/janbaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janbaer/subscriptions","organizations_url":"https://api.github.com/users/janbaer/orgs","repos_url":"https://api.github.com/users/janbaer/repos","events_url":"https://api.github.com/users/janbaer/events{/privacy}","received_events_url":"https://api.github.com/users/janbaer/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T10:06:38Z","updated_at":"2015-02-01T10:06:38Z","body":"The tests will be execute in a browser environment, not in node. Normally I'm using phantom.js but it's also possible to use Chrome or Firefox. What I mean is, if there's a pollyfill available. For phantom.js for example I need a pollyfill to supporting the **bind** function, that is in the other browsers natively supported."}}