{"action":"created","comment":{"url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/comments/242688059","pull_request_review_id":186260025,"id":242688059,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjY4ODA1OQ==","diff_hunk":"@@ -150,16 +150,24 @@ Default options can be overridden using the `removePropTypes` option. These opti\n \n For example, if you are using this plugin in a deployable app, you might want to use the remove mode for your production build (and disable this transform entirely in development for optimal build speeds).\n \n-## Classes loose mode\n+## Selective loose modes\n \n-By default, this preset will compile classes in normal mode. This is safer, but comes with a bundle size and runtime overhead. To [compile classes in loose mode](https://babeljs.io/docs/en/babel-plugin-transform-classes#loose), set the `looseClasses` option to `true`:\n+By default, this preset will compile everything in normal mode. This is safer, but comes with bundle size and runtime overhead. We have some options to selectively opt in to loose mode for some features. These options are:","path":"README.md","position":8,"original_position":8,"commit_id":"5ff7f72576d6863f04dfee0219e1ed2faf191f67","original_commit_id":"5ff7f72576d6863f04dfee0219e1ed2faf191f67","user":{"login":"ljharb","id":45469,"node_id":"MDQ6VXNlcjQ1NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/45469?v=4","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"body":"Maybe we should add some kind of warning, to urge users to be very careful to understand the caveats before enabling loose mode, and that if there's any doubt, to avoid it?","created_at":"2018-12-18T20:09:49Z","updated_at":"2018-12-18T20:13:14Z","html_url":"https://github.com/airbnb/babel-preset-airbnb/pull/48#discussion_r242688059","pull_request_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/comments/242688059"},"html":{"href":"https://github.com/airbnb/babel-preset-airbnb/pull/48#discussion_r242688059"},"pull_request":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48","id":239567412,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5NTY3NDEy","html_url":"https://github.com/airbnb/babel-preset-airbnb/pull/48","diff_url":"https://github.com/airbnb/babel-preset-airbnb/pull/48.diff","patch_url":"https://github.com/airbnb/babel-preset-airbnb/pull/48.patch","issue_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/48","number":48,"state":"open","locked":false,"title":"Add loose{ComputedProperties,Parameters,TemplateLiterals} options","user":{"login":"lencioni","id":195534,"node_id":"MDQ6VXNlcjE5NTUzNA==","avatar_url":"https://avatars3.githubusercontent.com/u/195534?v=4","gravatar_id":"","url":"https://api.github.com/users/lencioni","html_url":"https://github.com/lencioni","followers_url":"https://api.github.com/users/lencioni/followers","following_url":"https://api.github.com/users/lencioni/following{/other_user}","gists_url":"https://api.github.com/users/lencioni/gists{/gist_id}","starred_url":"https://api.github.com/users/lencioni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lencioni/subscriptions","organizations_url":"https://api.github.com/users/lencioni/orgs","repos_url":"https://api.github.com/users/lencioni/repos","events_url":"https://api.github.com/users/lencioni/events{/privacy}","received_events_url":"https://api.github.com/users/lencioni/received_events","type":"User","site_admin":false},"body":"These options behave similarly to how our recently added `looseClasses`\r\noption behaves, but for other features. These options will enable\r\nconsumers to weigh the tradeoffs for their particular codebase.\r\n\r\nI didn't see the `spec` option in the documentation for\r\n`@babel/plugin-transform-template-literals` so I removed that at the\r\nsame time. I assume it is now spec by default with a `loose` opt in like\r\nother Babel plugins.","created_at":"2018-12-18T17:14:36Z","updated_at":"2018-12-18T20:13:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"358c74182482ebd552e02afbb671473a3ca6487f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48/commits","review_comments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48/comments","review_comment_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/48/comments","statuses_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/statuses/5ff7f72576d6863f04dfee0219e1ed2faf191f67","head":{"label":"airbnb:more-loose","ref":"more-loose","sha":"5ff7f72576d6863f04dfee0219e1ed2faf191f67","user":{"login":"airbnb","id":698437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5ODQzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/698437?v=4","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"repo":{"id":45886508,"node_id":"MDEwOlJlcG9zaXRvcnk0NTg4NjUwOA==","name":"babel-preset-airbnb","full_name":"airbnb/babel-preset-airbnb","private":false,"owner":{"login":"airbnb","id":698437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5ODQzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/698437?v=4","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/airbnb/babel-preset-airbnb","description":"A babel preset for transforming your JavaScript for Airbnb","fork":false,"url":"https://api.github.com/repos/airbnb/babel-preset-airbnb","forks_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/forks","keys_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/teams","hooks_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/hooks","issue_events_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/events{/number}","events_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/events","assignees_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/assignees{/user}","branches_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/branches{/branch}","tags_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/tags","blobs_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/statuses/{sha}","languages_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/languages","stargazers_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/stargazers","contributors_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/contributors","subscribers_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/subscribers","subscription_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/subscription","commits_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/contents/{+path}","compare_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/merges","archive_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/downloads","issues_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues{/number}","pulls_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls{/number}","milestones_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/milestones{/number}","notifications_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/labels{/name}","releases_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/releases{/id}","deployments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/deployments","created_at":"2015-11-10T04:06:34Z","updated_at":"2018-12-14T15:59:04Z","pushed_at":"2018-12-18T17:14:36Z","git_url":"git://github.com/airbnb/babel-preset-airbnb.git","ssh_url":"git@github.com:airbnb/babel-preset-airbnb.git","clone_url":"https://github.com/airbnb/babel-preset-airbnb.git","svn_url":"https://github.com/airbnb/babel-preset-airbnb","homepage":null,"size":94,"stargazers_count":164,"watchers_count":164,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":30,"open_issues":1,"watchers":164,"default_branch":"master"}},"base":{"label":"airbnb:master","ref":"master","sha":"10fb77a98d7fda7faa3ebf0e381c9910024f5367","user":{"login":"airbnb","id":698437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5ODQzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/698437?v=4","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"repo":{"id":45886508,"node_id":"MDEwOlJlcG9zaXRvcnk0NTg4NjUwOA==","name":"babel-preset-airbnb","full_name":"airbnb/babel-preset-airbnb","private":false,"owner":{"login":"airbnb","id":698437,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5ODQzNw==","avatar_url":"https://avatars3.githubusercontent.com/u/698437?v=4","gravatar_id":"","url":"https://api.github.com/users/airbnb","html_url":"https://github.com/airbnb","followers_url":"https://api.github.com/users/airbnb/followers","following_url":"https://api.github.com/users/airbnb/following{/other_user}","gists_url":"https://api.github.com/users/airbnb/gists{/gist_id}","starred_url":"https://api.github.com/users/airbnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbnb/subscriptions","organizations_url":"https://api.github.com/users/airbnb/orgs","repos_url":"https://api.github.com/users/airbnb/repos","events_url":"https://api.github.com/users/airbnb/events{/privacy}","received_events_url":"https://api.github.com/users/airbnb/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/airbnb/babel-preset-airbnb","description":"A babel preset for transforming your JavaScript for Airbnb","fork":false,"url":"https://api.github.com/repos/airbnb/babel-preset-airbnb","forks_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/forks","keys_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/teams","hooks_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/hooks","issue_events_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/events{/number}","events_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/events","assignees_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/assignees{/user}","branches_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/branches{/branch}","tags_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/tags","blobs_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/statuses/{sha}","languages_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/languages","stargazers_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/stargazers","contributors_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/contributors","subscribers_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/subscribers","subscription_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/subscription","commits_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/contents/{+path}","compare_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/merges","archive_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/downloads","issues_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues{/number}","pulls_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls{/number}","milestones_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/milestones{/number}","notifications_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/labels{/name}","releases_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/releases{/id}","deployments_url":"https://api.github.com/repos/airbnb/babel-preset-airbnb/deployments","created_at":"2015-11-10T04:06:34Z","updated_at":"2018-12-14T15:59:04Z","pushed_at":"2018-12-18T17:14:36Z","git_url":"git://github.com/airbnb/babel-preset-airbnb.git","ssh_url":"git@github.com:airbnb/babel-preset-airbnb.git","clone_url":"https://github.com/airbnb/babel-preset-airbnb.git","svn_url":"https://github.com/airbnb/babel-preset-airbnb","homepage":null,"size":94,"stargazers_count":164,"watchers_count":164,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":30,"open_issues":1,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48"},"html":{"href":"https://github.com/airbnb/babel-preset-airbnb/pull/48"},"issue":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/48"},"comments":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/airbnb/babel-preset-airbnb/statuses/5ff7f72576d6863f04dfee0219e1ed2faf191f67"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ljharb"}}