{"action":"created","comment":{"url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/comments/54146273","id":54146273,"diff_hunk":"@@ -6,19 +6,11 @@ var uglify = require('gulp-uglify');\n \n gulp.task('default', ['build']);\n gulp.task('build', function() {\n-  return gulp.src('src/index.js')\n+  return gulp.src('lib/index.js')\n     .pipe(webpackStream({\n       module: {\n         loaders: [\n           {\n-            exclude: /node_modules/,\n-            test: /\\.js$/,\n-            loader: 'babel',\n-            query: {\n-              presets: ['es2015', 'stage-0']\n-            }\n-          },\n-          {\n             test: /\\.json$/,\n             loader: 'json'","path":"gulpfile.js","position":19,"original_position":19,"commit_id":"ded9a4bd5e3a651d791f7a900a2a697079d8351a","original_commit_id":"ded9a4bd5e3a651d791f7a900a2a697079d8351a","user":{"login":"jayphelps","id":762949,"avatar_url":"https://avatars.githubusercontent.com/u/762949?v=3","gravatar_id":"","url":"https://api.github.com/users/jayphelps","html_url":"https://github.com/jayphelps","followers_url":"https://api.github.com/users/jayphelps/followers","following_url":"https://api.github.com/users/jayphelps/following{/other_user}","gists_url":"https://api.github.com/users/jayphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jayphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayphelps/subscriptions","organizations_url":"https://api.github.com/users/jayphelps/orgs","repos_url":"https://api.github.com/users/jayphelps/repos","events_url":"https://api.github.com/users/jayphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jayphelps/received_events","type":"User","site_admin":false},"body":"I couldn't figure out why this is here and if this is unknowingly impacted by this PR?","created_at":"2016-02-25T19:07:32Z","updated_at":"2016-02-25T19:07:32Z","html_url":"https://github.com/Daniel15/babel-standalone/pull/20#discussion_r54146273","pull_request_url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/comments/54146273"},"html":{"href":"https://github.com/Daniel15/babel-standalone/pull/20#discussion_r54146273"},"pull_request":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20","id":60637853,"html_url":"https://github.com/Daniel15/babel-standalone/pull/20","diff_url":"https://github.com/Daniel15/babel-standalone/pull/20.diff","patch_url":"https://github.com/Daniel15/babel-standalone/pull/20.patch","issue_url":"https://api.github.com/repos/Daniel15/babel-standalone/issues/20","number":20,"state":"open","locked":false,"title":"Compile separately into lib first so npm users can consume raw CJS","user":{"login":"jayphelps","id":762949,"avatar_url":"https://avatars.githubusercontent.com/u/762949?v=3","gravatar_id":"","url":"https://api.github.com/users/jayphelps","html_url":"https://github.com/jayphelps","followers_url":"https://api.github.com/users/jayphelps/followers","following_url":"https://api.github.com/users/jayphelps/following{/other_user}","gists_url":"https://api.github.com/users/jayphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jayphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayphelps/subscriptions","organizations_url":"https://api.github.com/users/jayphelps/orgs","repos_url":"https://api.github.com/users/jayphelps/repos","events_url":"https://api.github.com/users/jayphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jayphelps/received_events","type":"User","site_admin":false},"body":"*Edit: this PR wrongfully assumed the source was ES5.1, but it's ES2015 so it definitely should be compiled first, but the idea still holds of pointing to CJS instead of a concatenated file*\r\n\r\nUsually npm packages that use CJS internally expose their files as-is via the package.json `main` field, rather than the built artifact `babel.js`, which is less flexible for consumption in a consumer's build pipeline.\r\n\r\nIn my case, I don't want to bundle every single plugin/preset, which I can exclude via webpack/browserify overrides using the CJS source.\r\n\r\nThat said, I can (and did) work around this simply by reaching to the original source with `import { transform } from 'babel-standalone/src';` which works, I just think doing so is opposite of the ideal. Usually people publish built sources via bower (though I realize bower's days are numbered). IMO publishing the artifact is still perfectly fine to do in npm, but that it shouldn't be the default.\r\n\r\nIf you feel strongly against this, feel free to ignore me since I have a clear workaround. :smirk: ","created_at":"2016-02-25T07:43:11Z","updated_at":"2016-02-25T19:07:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd75c40bb0faada0648579f58991ffc02ed84f77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Daniel15/babel-standalone/issues/20/comments","statuses_url":"https://api.github.com/repos/Daniel15/babel-standalone/statuses/ded9a4bd5e3a651d791f7a900a2a697079d8351a","head":{"label":"jayphelps:main","ref":"main","sha":"ded9a4bd5e3a651d791f7a900a2a697079d8351a","user":{"login":"jayphelps","id":762949,"avatar_url":"https://avatars.githubusercontent.com/u/762949?v=3","gravatar_id":"","url":"https://api.github.com/users/jayphelps","html_url":"https://github.com/jayphelps","followers_url":"https://api.github.com/users/jayphelps/followers","following_url":"https://api.github.com/users/jayphelps/following{/other_user}","gists_url":"https://api.github.com/users/jayphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jayphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayphelps/subscriptions","organizations_url":"https://api.github.com/users/jayphelps/orgs","repos_url":"https://api.github.com/users/jayphelps/repos","events_url":"https://api.github.com/users/jayphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jayphelps/received_events","type":"User","site_admin":false},"repo":{"id":52505843,"name":"babel-standalone","full_name":"jayphelps/babel-standalone","owner":{"login":"jayphelps","id":762949,"avatar_url":"https://avatars.githubusercontent.com/u/762949?v=3","gravatar_id":"","url":"https://api.github.com/users/jayphelps","html_url":"https://github.com/jayphelps","followers_url":"https://api.github.com/users/jayphelps/followers","following_url":"https://api.github.com/users/jayphelps/following{/other_user}","gists_url":"https://api.github.com/users/jayphelps/gists{/gist_id}","starred_url":"https://api.github.com/users/jayphelps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayphelps/subscriptions","organizations_url":"https://api.github.com/users/jayphelps/orgs","repos_url":"https://api.github.com/users/jayphelps/repos","events_url":"https://api.github.com/users/jayphelps/events{/privacy}","received_events_url":"https://api.github.com/users/jayphelps/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jayphelps/babel-standalone","description":"Standalone build of Babel for use in non-Node.js environments, including browsers. Similar to the (now deprecated) babel-browser.","fork":true,"url":"https://api.github.com/repos/jayphelps/babel-standalone","forks_url":"https://api.github.com/repos/jayphelps/babel-standalone/forks","keys_url":"https://api.github.com/repos/jayphelps/babel-standalone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayphelps/babel-standalone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayphelps/babel-standalone/teams","hooks_url":"https://api.github.com/repos/jayphelps/babel-standalone/hooks","issue_events_url":"https://api.github.com/repos/jayphelps/babel-standalone/issues/events{/number}","events_url":"https://api.github.com/repos/jayphelps/babel-standalone/events","assignees_url":"https://api.github.com/repos/jayphelps/babel-standalone/assignees{/user}","branches_url":"https://api.github.com/repos/jayphelps/babel-standalone/branches{/branch}","tags_url":"https://api.github.com/repos/jayphelps/babel-standalone/tags","blobs_url":"https://api.github.com/repos/jayphelps/babel-standalone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayphelps/babel-standalone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayphelps/babel-standalone/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayphelps/babel-standalone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayphelps/babel-standalone/statuses/{sha}","languages_url":"https://api.github.com/repos/jayphelps/babel-standalone/languages","stargazers_url":"https://api.github.com/repos/jayphelps/babel-standalone/stargazers","contributors_url":"https://api.github.com/repos/jayphelps/babel-standalone/contributors","subscribers_url":"https://api.github.com/repos/jayphelps/babel-standalone/subscribers","subscription_url":"https://api.github.com/repos/jayphelps/babel-standalone/subscription","commits_url":"https://api.github.com/repos/jayphelps/babel-standalone/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayphelps/babel-standalone/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayphelps/babel-standalone/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayphelps/babel-standalone/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayphelps/babel-standalone/contents/{+path}","compare_url":"https://api.github.com/repos/jayphelps/babel-standalone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayphelps/babel-standalone/merges","archive_url":"https://api.github.com/repos/jayphelps/babel-standalone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayphelps/babel-standalone/downloads","issues_url":"https://api.github.com/repos/jayphelps/babel-standalone/issues{/number}","pulls_url":"https://api.github.com/repos/jayphelps/babel-standalone/pulls{/number}","milestones_url":"https://api.github.com/repos/jayphelps/babel-standalone/milestones{/number}","notifications_url":"https://api.github.com/repos/jayphelps/babel-standalone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayphelps/babel-standalone/labels{/name}","releases_url":"https://api.github.com/repos/jayphelps/babel-standalone/releases{/id}","deployments_url":"https://api.github.com/repos/jayphelps/babel-standalone/deployments","created_at":"2016-02-25T07:34:47Z","updated_at":"2016-02-25T07:34:47Z","pushed_at":"2016-02-25T19:04:35Z","git_url":"git://github.com/jayphelps/babel-standalone.git","ssh_url":"git@github.com:jayphelps/babel-standalone.git","clone_url":"https://github.com/jayphelps/babel-standalone.git","svn_url":"https://github.com/jayphelps/babel-standalone","homepage":null,"size":15,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"Daniel15:master","ref":"master","sha":"f4849d89253a2182bbb32fe8d92d196246a8ad06","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"repo":{"id":47487544,"name":"babel-standalone","full_name":"Daniel15/babel-standalone","owner":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Daniel15/babel-standalone","description":"Standalone build of Babel for use in non-Node.js environments, including browsers. Similar to the (now deprecated) babel-browser.","fork":false,"url":"https://api.github.com/repos/Daniel15/babel-standalone","forks_url":"https://api.github.com/repos/Daniel15/babel-standalone/forks","keys_url":"https://api.github.com/repos/Daniel15/babel-standalone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Daniel15/babel-standalone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Daniel15/babel-standalone/teams","hooks_url":"https://api.github.com/repos/Daniel15/babel-standalone/hooks","issue_events_url":"https://api.github.com/repos/Daniel15/babel-standalone/issues/events{/number}","events_url":"https://api.github.com/repos/Daniel15/babel-standalone/events","assignees_url":"https://api.github.com/repos/Daniel15/babel-standalone/assignees{/user}","branches_url":"https://api.github.com/repos/Daniel15/babel-standalone/branches{/branch}","tags_url":"https://api.github.com/repos/Daniel15/babel-standalone/tags","blobs_url":"https://api.github.com/repos/Daniel15/babel-standalone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Daniel15/babel-standalone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Daniel15/babel-standalone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Daniel15/babel-standalone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Daniel15/babel-standalone/statuses/{sha}","languages_url":"https://api.github.com/repos/Daniel15/babel-standalone/languages","stargazers_url":"https://api.github.com/repos/Daniel15/babel-standalone/stargazers","contributors_url":"https://api.github.com/repos/Daniel15/babel-standalone/contributors","subscribers_url":"https://api.github.com/repos/Daniel15/babel-standalone/subscribers","subscription_url":"https://api.github.com/repos/Daniel15/babel-standalone/subscription","commits_url":"https://api.github.com/repos/Daniel15/babel-standalone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Daniel15/babel-standalone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Daniel15/babel-standalone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Daniel15/babel-standalone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Daniel15/babel-standalone/contents/{+path}","compare_url":"https://api.github.com/repos/Daniel15/babel-standalone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Daniel15/babel-standalone/merges","archive_url":"https://api.github.com/repos/Daniel15/babel-standalone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Daniel15/babel-standalone/downloads","issues_url":"https://api.github.com/repos/Daniel15/babel-standalone/issues{/number}","pulls_url":"https://api.github.com/repos/Daniel15/babel-standalone/pulls{/number}","milestones_url":"https://api.github.com/repos/Daniel15/babel-standalone/milestones{/number}","notifications_url":"https://api.github.com/repos/Daniel15/babel-standalone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Daniel15/babel-standalone/labels{/name}","releases_url":"https://api.github.com/repos/Daniel15/babel-standalone/releases{/id}","deployments_url":"https://api.github.com/repos/Daniel15/babel-standalone/deployments","created_at":"2015-12-06T07:17:30Z","updated_at":"2016-02-19T19:11:36Z","pushed_at":"2016-02-25T19:04:36Z","git_url":"git://github.com/Daniel15/babel-standalone.git","ssh_url":"git@github.com:Daniel15/babel-standalone.git","clone_url":"https://github.com/Daniel15/babel-standalone.git","svn_url":"https://github.com/Daniel15/babel-standalone","homepage":null,"size":22,"stargazers_count":68,"watchers_count":68,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":8,"forks":8,"open_issues":8,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20"},"html":{"href":"https://github.com/Daniel15/babel-standalone/pull/20"},"issue":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/issues/20"},"comments":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Daniel15/babel-standalone/statuses/ded9a4bd5e3a651d791f7a900a2a697079d8351a"}}}}