{"action":"created","comment":{"url":"https://api.github.com/repos/avajs/ava/pulls/comments/89695348","pull_request_review_id":10234760,"id":89695348,"diff_hunk":"@@ -47,8 +48,33 @@ CachingPrecompiler.prototype._init = function () {\n CachingPrecompiler.prototype._transform = function (code, filePath, hash) {\n \tcode = code.toString();\n \n-\tvar options = babelConfigHelper.build(this.babelConfig, this.powerAssert, filePath, code);\n-\tvar result = this.babel.transform(code, options);\n+\tvar fileExt = path.extname(filePath).replace(/^\\./, '');\n+\tvar isCustomExt = this.extensions.filter(function (ext) {\n+\t\treturn (ext !== 'js' && ext === fileExt);\n+\t}).length > 0;\n+\n+\tvar result;\n+\n+\tif (isCustomExt) {\n+\t\tswitch (fileExt) {","path":"lib/caching-precompiler.js","position":22,"original_position":22,"commit_id":"d91ed25594279efd100ffbc095b99f7cd3f0a5ce","original_commit_id":"d91ed25594279efd100ffbc095b99f7cd3f0a5ce","user":{"login":"vdemedes","id":697676,"avatar_url":"https://avatars.githubusercontent.com/u/697676?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemedes","html_url":"https://github.com/vdemedes","followers_url":"https://api.github.com/users/vdemedes/followers","following_url":"https://api.github.com/users/vdemedes/following{/other_user}","gists_url":"https://api.github.com/users/vdemedes/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemedes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemedes/subscriptions","organizations_url":"https://api.github.com/users/vdemedes/orgs","repos_url":"https://api.github.com/users/vdemedes/repos","events_url":"https://api.github.com/users/vdemedes/events{/privacy}","received_events_url":"https://api.github.com/users/vdemedes/received_events","type":"User","site_admin":false},"body":"I'm not a fan of switch statements, simple if here could do just as well. @sindresorhus ?","created_at":"2016-11-27T17:49:40Z","updated_at":"2016-11-27T17:49:41Z","html_url":"https://github.com/avajs/ava/pull/1122#discussion_r89695348","pull_request_url":"https://api.github.com/repos/avajs/ava/pulls/1122","_links":{"self":{"href":"https://api.github.com/repos/avajs/ava/pulls/comments/89695348"},"html":{"href":"https://github.com/avajs/ava/pull/1122#discussion_r89695348"},"pull_request":{"href":"https://api.github.com/repos/avajs/ava/pulls/1122"}}},"pull_request":{"url":"https://api.github.com/repos/avajs/ava/pulls/1122","id":94571786,"html_url":"https://github.com/avajs/ava/pull/1122","diff_url":"https://github.com/avajs/ava/pull/1122.diff","patch_url":"https://github.com/avajs/ava/pull/1122.patch","issue_url":"https://api.github.com/repos/avajs/ava/issues/1122","number":1122,"state":"open","locked":false,"title":"Add support for TypeScript without precompiling","user":{"login":"zixia","id":1361891,"avatar_url":"https://avatars.githubusercontent.com/u/1361891?v=3","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"body":"Follow #1109 \r\n\r\nNotice that this PR has to work together with https://github.com/avajs/ava-files/pull/9\r\n\r\nSo unit testing in CI will expect failure before we merge&update `AvaFiles` NPM.\r\n\r\nIn my development environment with `npm link ava-files`, all unit tests had passed.","created_at":"2016-11-21T08:29:50Z","updated_at":"2016-11-27T17:49:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ca14981e0933550135d0500bb14a543b0057096","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/avajs/ava/pulls/1122/commits","review_comments_url":"https://api.github.com/repos/avajs/ava/pulls/1122/comments","review_comment_url":"https://api.github.com/repos/avajs/ava/pulls/comments{/number}","comments_url":"https://api.github.com/repos/avajs/ava/issues/1122/comments","statuses_url":"https://api.github.com/repos/avajs/ava/statuses/d91ed25594279efd100ffbc095b99f7cd3f0a5ce","head":{"label":"zixia:typescript","ref":"typescript","sha":"d91ed25594279efd100ffbc095b99f7cd3f0a5ce","user":{"login":"zixia","id":1361891,"avatar_url":"https://avatars.githubusercontent.com/u/1361891?v=3","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"repo":{"id":73826371,"name":"ava","full_name":"zixia/ava","owner":{"login":"zixia","id":1361891,"avatar_url":"https://avatars.githubusercontent.com/u/1361891?v=3","gravatar_id":"","url":"https://api.github.com/users/zixia","html_url":"https://github.com/zixia","followers_url":"https://api.github.com/users/zixia/followers","following_url":"https://api.github.com/users/zixia/following{/other_user}","gists_url":"https://api.github.com/users/zixia/gists{/gist_id}","starred_url":"https://api.github.com/users/zixia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zixia/subscriptions","organizations_url":"https://api.github.com/users/zixia/orgs","repos_url":"https://api.github.com/users/zixia/repos","events_url":"https://api.github.com/users/zixia/events{/privacy}","received_events_url":"https://api.github.com/users/zixia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zixia/ava","description":":rocket: Futuristic JavaScript test runner","fork":true,"url":"https://api.github.com/repos/zixia/ava","forks_url":"https://api.github.com/repos/zixia/ava/forks","keys_url":"https://api.github.com/repos/zixia/ava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zixia/ava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zixia/ava/teams","hooks_url":"https://api.github.com/repos/zixia/ava/hooks","issue_events_url":"https://api.github.com/repos/zixia/ava/issues/events{/number}","events_url":"https://api.github.com/repos/zixia/ava/events","assignees_url":"https://api.github.com/repos/zixia/ava/assignees{/user}","branches_url":"https://api.github.com/repos/zixia/ava/branches{/branch}","tags_url":"https://api.github.com/repos/zixia/ava/tags","blobs_url":"https://api.github.com/repos/zixia/ava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zixia/ava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zixia/ava/git/refs{/sha}","trees_url":"https://api.github.com/repos/zixia/ava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zixia/ava/statuses/{sha}","languages_url":"https://api.github.com/repos/zixia/ava/languages","stargazers_url":"https://api.github.com/repos/zixia/ava/stargazers","contributors_url":"https://api.github.com/repos/zixia/ava/contributors","subscribers_url":"https://api.github.com/repos/zixia/ava/subscribers","subscription_url":"https://api.github.com/repos/zixia/ava/subscription","commits_url":"https://api.github.com/repos/zixia/ava/commits{/sha}","git_commits_url":"https://api.github.com/repos/zixia/ava/git/commits{/sha}","comments_url":"https://api.github.com/repos/zixia/ava/comments{/number}","issue_comment_url":"https://api.github.com/repos/zixia/ava/issues/comments{/number}","contents_url":"https://api.github.com/repos/zixia/ava/contents/{+path}","compare_url":"https://api.github.com/repos/zixia/ava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zixia/ava/merges","archive_url":"https://api.github.com/repos/zixia/ava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zixia/ava/downloads","issues_url":"https://api.github.com/repos/zixia/ava/issues{/number}","pulls_url":"https://api.github.com/repos/zixia/ava/pulls{/number}","milestones_url":"https://api.github.com/repos/zixia/ava/milestones{/number}","notifications_url":"https://api.github.com/repos/zixia/ava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zixia/ava/labels{/name}","releases_url":"https://api.github.com/repos/zixia/ava/releases{/id}","deployments_url":"https://api.github.com/repos/zixia/ava/deployments","created_at":"2016-11-15T15:20:49Z","updated_at":"2016-11-15T15:20:51Z","pushed_at":"2016-11-26T04:05:19Z","git_url":"git://github.com/zixia/ava.git","ssh_url":"git@github.com:zixia/ava.git","clone_url":"https://github.com/zixia/ava.git","svn_url":"https://github.com/zixia/ava","homepage":"","size":4151,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"avajs:master","ref":"master","sha":"4acb78fcb98e618ce65ec8f941c8e5ccca32c380","user":{"login":"avajs","id":8527916,"avatar_url":"https://avatars.githubusercontent.com/u/8527916?v=3","gravatar_id":"","url":"https://api.github.com/users/avajs","html_url":"https://github.com/avajs","followers_url":"https://api.github.com/users/avajs/followers","following_url":"https://api.github.com/users/avajs/following{/other_user}","gists_url":"https://api.github.com/users/avajs/gists{/gist_id}","starred_url":"https://api.github.com/users/avajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avajs/subscriptions","organizations_url":"https://api.github.com/users/avajs/orgs","repos_url":"https://api.github.com/users/avajs/repos","events_url":"https://api.github.com/users/avajs/events{/privacy}","received_events_url":"https://api.github.com/users/avajs/received_events","type":"Organization","site_admin":false},"repo":{"id":26820798,"name":"ava","full_name":"avajs/ava","owner":{"login":"avajs","id":8527916,"avatar_url":"https://avatars.githubusercontent.com/u/8527916?v=3","gravatar_id":"","url":"https://api.github.com/users/avajs","html_url":"https://github.com/avajs","followers_url":"https://api.github.com/users/avajs/followers","following_url":"https://api.github.com/users/avajs/following{/other_user}","gists_url":"https://api.github.com/users/avajs/gists{/gist_id}","starred_url":"https://api.github.com/users/avajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avajs/subscriptions","organizations_url":"https://api.github.com/users/avajs/orgs","repos_url":"https://api.github.com/users/avajs/repos","events_url":"https://api.github.com/users/avajs/events{/privacy}","received_events_url":"https://api.github.com/users/avajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/avajs/ava","description":":rocket: Futuristic JavaScript test runner","fork":false,"url":"https://api.github.com/repos/avajs/ava","forks_url":"https://api.github.com/repos/avajs/ava/forks","keys_url":"https://api.github.com/repos/avajs/ava/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avajs/ava/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avajs/ava/teams","hooks_url":"https://api.github.com/repos/avajs/ava/hooks","issue_events_url":"https://api.github.com/repos/avajs/ava/issues/events{/number}","events_url":"https://api.github.com/repos/avajs/ava/events","assignees_url":"https://api.github.com/repos/avajs/ava/assignees{/user}","branches_url":"https://api.github.com/repos/avajs/ava/branches{/branch}","tags_url":"https://api.github.com/repos/avajs/ava/tags","blobs_url":"https://api.github.com/repos/avajs/ava/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avajs/ava/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avajs/ava/git/refs{/sha}","trees_url":"https://api.github.com/repos/avajs/ava/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avajs/ava/statuses/{sha}","languages_url":"https://api.github.com/repos/avajs/ava/languages","stargazers_url":"https://api.github.com/repos/avajs/ava/stargazers","contributors_url":"https://api.github.com/repos/avajs/ava/contributors","subscribers_url":"https://api.github.com/repos/avajs/ava/subscribers","subscription_url":"https://api.github.com/repos/avajs/ava/subscription","commits_url":"https://api.github.com/repos/avajs/ava/commits{/sha}","git_commits_url":"https://api.github.com/repos/avajs/ava/git/commits{/sha}","comments_url":"https://api.github.com/repos/avajs/ava/comments{/number}","issue_comment_url":"https://api.github.com/repos/avajs/ava/issues/comments{/number}","contents_url":"https://api.github.com/repos/avajs/ava/contents/{+path}","compare_url":"https://api.github.com/repos/avajs/ava/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avajs/ava/merges","archive_url":"https://api.github.com/repos/avajs/ava/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avajs/ava/downloads","issues_url":"https://api.github.com/repos/avajs/ava/issues{/number}","pulls_url":"https://api.github.com/repos/avajs/ava/pulls{/number}","milestones_url":"https://api.github.com/repos/avajs/ava/milestones{/number}","notifications_url":"https://api.github.com/repos/avajs/ava/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avajs/ava/labels{/name}","releases_url":"https://api.github.com/repos/avajs/ava/releases{/id}","deployments_url":"https://api.github.com/repos/avajs/ava/deployments","created_at":"2014-11-18T17:20:26Z","updated_at":"2016-11-27T16:55:18Z","pushed_at":"2016-11-26T04:05:19Z","git_url":"git://github.com/avajs/ava.git","ssh_url":"git@github.com:avajs/ava.git","clone_url":"https://github.com/avajs/ava.git","svn_url":"https://github.com/avajs/ava","homepage":"","size":5333,"stargazers_count":7214,"watchers_count":7214,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":346,"mirror_url":null,"open_issues_count":148,"forks":346,"open_issues":148,"watchers":7214,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/avajs/ava/pulls/1122"},"html":{"href":"https://github.com/avajs/ava/pull/1122"},"issue":{"href":"https://api.github.com/repos/avajs/ava/issues/1122"},"comments":{"href":"https://api.github.com/repos/avajs/ava/issues/1122/comments"},"review_comments":{"href":"https://api.github.com/repos/avajs/ava/pulls/1122/comments"},"review_comment":{"href":"https://api.github.com/repos/avajs/ava/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/avajs/ava/pulls/1122/commits"},"statuses":{"href":"https://api.github.com/repos/avajs/ava/statuses/d91ed25594279efd100ffbc095b99f7cd3f0a5ce"}}}}
{"actor":{"display_login":"vdemedes"}}