{"action":"created","comment":{"url":"https://api.github.com/repos/rebassjs/components/pulls/comments/215942459","pull_request_review_id":153320956,"id":215942459,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTk0MjQ1OQ==","diff_hunk":"@@ -0,0 +1,22 @@\n+module.exports = {\n+  presets: [\n+    [\"@babel/env\", {\n+      modules: process.env.NODE_ENV.includes('cjs') ||\n+      process.env.NODE_ENV === 'test'\n+      ? 'commonjs'\n+      : false\n+    }],\n+    \"@babel/react\"\n+  ],\n+  plugins: []\n+}\n+\n+if (process.env.NODE_ENV.includes('emotion')) {","path":".babelrc.js","position":14,"original_position":14,"commit_id":"de639fb3cb01f40fe7995865cb0f9683e6bbe158","original_commit_id":"de639fb3cb01f40fe7995865cb0f9683e6bbe158","user":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"body":"It's not deprecated (well, it was for a while).\r\n\r\n`env` field just not used by js config. Consider json version with `env` field is a wrapper around it. Don't know where this mentioned in docs to be honest.","created_at":"2018-09-07T12:29:27Z","updated_at":"2018-09-07T12:29:27Z","html_url":"https://github.com/rebassjs/components/pull/2#discussion_r215942459","pull_request_url":"https://api.github.com/repos/rebassjs/components/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rebassjs/components/pulls/comments/215942459"},"html":{"href":"https://github.com/rebassjs/components/pull/2#discussion_r215942459"},"pull_request":{"href":"https://api.github.com/repos/rebassjs/components/pulls/2"}},"in_reply_to_id":215805958},"pull_request":{"url":"https://api.github.com/repos/rebassjs/components/pulls/2","id":212821879,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyODIxODc5","html_url":"https://github.com/rebassjs/components/pull/2","diff_url":"https://github.com/rebassjs/components/pull/2.diff","patch_url":"https://github.com/rebassjs/components/pull/2.patch","issue_url":"https://api.github.com/repos/rebassjs/components/issues/2","number":2,"state":"open","locked":false,"title":"Provide esm output","user":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"body":"In this diff I added esm support via dual mode. The idea is keeping\r\ncjs/esm pair with the same file name and with js and mjs extensions.\r\nBundler may choose which format to use.\r\n\r\nmain (dist/index) bundler will choose on of these\r\n- dist/index.js\r\n- dist/index.mjs\r\n\r\n/emotion reexports from dist/emotion\r\n- dist/emotion/index.js\r\n- dist/emotion/index.mjs\r\n\r\nRef https://medium.com/@giltayar/native-es-modules-in-nodejs-status-and-future-directions-part-i-ee5ea3001f71\r\n\r\nUpgraded babel to be able to use js config.","created_at":"2018-09-03T21:51:58Z","updated_at":"2018-09-07T12:29:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d103ef522bb9910c846b253fe891c01c7749e336","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rebassjs/components/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rebassjs/components/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rebassjs/components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rebassjs/components/issues/2/comments","statuses_url":"https://api.github.com/repos/rebassjs/components/statuses/de639fb3cb01f40fe7995865cb0f9683e6bbe158","head":{"label":"TrySound:esm-support","ref":"esm-support","sha":"de639fb3cb01f40fe7995865cb0f9683e6bbe158","user":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"repo":{"id":147256809,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyNTY4MDk=","name":"components","full_name":"TrySound/components","owner":{"login":"TrySound","id":5635476,"node_id":"MDQ6VXNlcjU2MzU0NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5635476?v=4","gravatar_id":"","url":"https://api.github.com/users/TrySound","html_url":"https://github.com/TrySound","followers_url":"https://api.github.com/users/TrySound/followers","following_url":"https://api.github.com/users/TrySound/following{/other_user}","gists_url":"https://api.github.com/users/TrySound/gists{/gist_id}","starred_url":"https://api.github.com/users/TrySound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrySound/subscriptions","organizations_url":"https://api.github.com/users/TrySound/orgs","repos_url":"https://api.github.com/users/TrySound/repos","events_url":"https://api.github.com/users/TrySound/events{/privacy}","received_events_url":"https://api.github.com/users/TrySound/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrySound/components","description":"Create consistent styled-system based React UI components","fork":true,"url":"https://api.github.com/repos/TrySound/components","forks_url":"https://api.github.com/repos/TrySound/components/forks","keys_url":"https://api.github.com/repos/TrySound/components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrySound/components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrySound/components/teams","hooks_url":"https://api.github.com/repos/TrySound/components/hooks","issue_events_url":"https://api.github.com/repos/TrySound/components/issues/events{/number}","events_url":"https://api.github.com/repos/TrySound/components/events","assignees_url":"https://api.github.com/repos/TrySound/components/assignees{/user}","branches_url":"https://api.github.com/repos/TrySound/components/branches{/branch}","tags_url":"https://api.github.com/repos/TrySound/components/tags","blobs_url":"https://api.github.com/repos/TrySound/components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrySound/components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrySound/components/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrySound/components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrySound/components/statuses/{sha}","languages_url":"https://api.github.com/repos/TrySound/components/languages","stargazers_url":"https://api.github.com/repos/TrySound/components/stargazers","contributors_url":"https://api.github.com/repos/TrySound/components/contributors","subscribers_url":"https://api.github.com/repos/TrySound/components/subscribers","subscription_url":"https://api.github.com/repos/TrySound/components/subscription","commits_url":"https://api.github.com/repos/TrySound/components/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrySound/components/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrySound/components/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrySound/components/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrySound/components/contents/{+path}","compare_url":"https://api.github.com/repos/TrySound/components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrySound/components/merges","archive_url":"https://api.github.com/repos/TrySound/components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrySound/components/downloads","issues_url":"https://api.github.com/repos/TrySound/components/issues{/number}","pulls_url":"https://api.github.com/repos/TrySound/components/pulls{/number}","milestones_url":"https://api.github.com/repos/TrySound/components/milestones{/number}","notifications_url":"https://api.github.com/repos/TrySound/components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrySound/components/labels{/name}","releases_url":"https://api.github.com/repos/TrySound/components/releases{/id}","deployments_url":"https://api.github.com/repos/TrySound/components/deployments","created_at":"2018-09-03T21:50:27Z","updated_at":"2018-09-03T21:50:29Z","pushed_at":"2018-09-03T22:57:16Z","git_url":"git://github.com/TrySound/components.git","ssh_url":"git@github.com:TrySound/components.git","clone_url":"https://github.com/TrySound/components.git","svn_url":"https://github.com/TrySound/components","homepage":"","size":250,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rebassjs:master","ref":"master","sha":"59fab7fd34dea2687cb83133817477f0c575d7f7","user":{"login":"rebassjs","id":41265750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMjY1NzUw","avatar_url":"https://avatars1.githubusercontent.com/u/41265750?v=4","gravatar_id":"","url":"https://api.github.com/users/rebassjs","html_url":"https://github.com/rebassjs","followers_url":"https://api.github.com/users/rebassjs/followers","following_url":"https://api.github.com/users/rebassjs/following{/other_user}","gists_url":"https://api.github.com/users/rebassjs/gists{/gist_id}","starred_url":"https://api.github.com/users/rebassjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebassjs/subscriptions","organizations_url":"https://api.github.com/users/rebassjs/orgs","repos_url":"https://api.github.com/users/rebassjs/repos","events_url":"https://api.github.com/users/rebassjs/events{/privacy}","received_events_url":"https://api.github.com/users/rebassjs/received_events","type":"Organization","site_admin":false},"repo":{"id":147041876,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcwNDE4NzY=","name":"components","full_name":"rebassjs/components","owner":{"login":"rebassjs","id":41265750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMjY1NzUw","avatar_url":"https://avatars1.githubusercontent.com/u/41265750?v=4","gravatar_id":"","url":"https://api.github.com/users/rebassjs","html_url":"https://github.com/rebassjs","followers_url":"https://api.github.com/users/rebassjs/followers","following_url":"https://api.github.com/users/rebassjs/following{/other_user}","gists_url":"https://api.github.com/users/rebassjs/gists{/gist_id}","starred_url":"https://api.github.com/users/rebassjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebassjs/subscriptions","organizations_url":"https://api.github.com/users/rebassjs/orgs","repos_url":"https://api.github.com/users/rebassjs/repos","events_url":"https://api.github.com/users/rebassjs/events{/privacy}","received_events_url":"https://api.github.com/users/rebassjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rebassjs/components","description":"Create consistent styled-system based React UI components","fork":false,"url":"https://api.github.com/repos/rebassjs/components","forks_url":"https://api.github.com/repos/rebassjs/components/forks","keys_url":"https://api.github.com/repos/rebassjs/components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebassjs/components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebassjs/components/teams","hooks_url":"https://api.github.com/repos/rebassjs/components/hooks","issue_events_url":"https://api.github.com/repos/rebassjs/components/issues/events{/number}","events_url":"https://api.github.com/repos/rebassjs/components/events","assignees_url":"https://api.github.com/repos/rebassjs/components/assignees{/user}","branches_url":"https://api.github.com/repos/rebassjs/components/branches{/branch}","tags_url":"https://api.github.com/repos/rebassjs/components/tags","blobs_url":"https://api.github.com/repos/rebassjs/components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebassjs/components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebassjs/components/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebassjs/components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebassjs/components/statuses/{sha}","languages_url":"https://api.github.com/repos/rebassjs/components/languages","stargazers_url":"https://api.github.com/repos/rebassjs/components/stargazers","contributors_url":"https://api.github.com/repos/rebassjs/components/contributors","subscribers_url":"https://api.github.com/repos/rebassjs/components/subscribers","subscription_url":"https://api.github.com/repos/rebassjs/components/subscription","commits_url":"https://api.github.com/repos/rebassjs/components/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebassjs/components/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebassjs/components/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebassjs/components/issues/comments{/number}","contents_url":"https://api.github.com/repos/rebassjs/components/contents/{+path}","compare_url":"https://api.github.com/repos/rebassjs/components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebassjs/components/merges","archive_url":"https://api.github.com/repos/rebassjs/components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebassjs/components/downloads","issues_url":"https://api.github.com/repos/rebassjs/components/issues{/number}","pulls_url":"https://api.github.com/repos/rebassjs/components/pulls{/number}","milestones_url":"https://api.github.com/repos/rebassjs/components/milestones{/number}","notifications_url":"https://api.github.com/repos/rebassjs/components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebassjs/components/labels{/name}","releases_url":"https://api.github.com/repos/rebassjs/components/releases{/id}","deployments_url":"https://api.github.com/repos/rebassjs/components/deployments","created_at":"2018-09-02T00:21:44Z","updated_at":"2018-09-07T09:28:35Z","pushed_at":"2018-09-03T22:57:17Z","git_url":"git://github.com/rebassjs/components.git","ssh_url":"git@github.com:rebassjs/components.git","clone_url":"https://github.com/rebassjs/components.git","svn_url":"https://github.com/rebassjs/components","homepage":"","size":236,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":2,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rebassjs/components/pulls/2"},"html":{"href":"https://github.com/rebassjs/components/pull/2"},"issue":{"href":"https://api.github.com/repos/rebassjs/components/issues/2"},"comments":{"href":"https://api.github.com/repos/rebassjs/components/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rebassjs/components/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rebassjs/components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rebassjs/components/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rebassjs/components/statuses/de639fb3cb01f40fe7995865cb0f9683e6bbe158"}},"author_association":"NONE"}}
{"actor":{"display_login":"TrySound"}}