{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/3349","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/3349/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/3349/comments","events_url":"https://api.github.com/repos/babel/babel/issues/3349/events","html_url":"https://github.com/babel/babel/pull/3349","id":132984165,"number":3349,"title":"Example of configurable preset. WIP.","user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/WIP","name":"WIP","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-11T14:13:43Z","updated_at":"2016-02-11T23:33:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/babel/babel/pulls/3349","html_url":"https://github.com/babel/babel/pull/3349","diff_url":"https://github.com/babel/babel/pull/3349.diff","patch_url":"https://github.com/babel/babel/pull/3349.patch"},"body":"This isn't meant to be merged. For now it's just a counterpoint to #3331.\r\n\r\nHow this would work:\r\n\r\n`my-custom-preset.js`\r\n\r\n```js\r\nvar plugins = require(\"babel-preset-es2015/plugins\")();\r\n\r\n// Do whatever you want with plugins -- add, remove, reorder, add options,\r\n// change options. Depending exactly how the resolution works, maybe require()\r\n// them here.\r\n\r\nmodule.exports = {plugins: plugins};\r\n```\r\n\r\n`.babelrc`\r\n\r\n```json\r\n{\r\n  \"presets\": [\"my-custom-preset\"]\r\n}\r\n```\r\n\r\n`package.json`\r\n\r\n```json\r\n{\r\n  \"devDependencies\": {\r\n    \"babel-preset-es2015\": \"6.x\",\r\n    \"my-custom-preset\": \"file:./my-custom-preset\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/183104815","html_url":"https://github.com/babel/babel/pull/3349#issuecomment-183104815","issue_url":"https://api.github.com/repos/babel/babel/issues/3349","id":183104815,"user":{"login":"jmm","id":129203,"avatar_url":"https://avatars.githubusercontent.com/u/129203?v=3","gravatar_id":"","url":"https://api.github.com/users/jmm","html_url":"https://github.com/jmm","followers_url":"https://api.github.com/users/jmm/followers","following_url":"https://api.github.com/users/jmm/following{/other_user}","gists_url":"https://api.github.com/users/jmm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmm/subscriptions","organizations_url":"https://api.github.com/users/jmm/orgs","repos_url":"https://api.github.com/users/jmm/repos","events_url":"https://api.github.com/users/jmm/events{/privacy}","received_events_url":"https://api.github.com/users/jmm/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T23:33:33Z","updated_at":"2016-02-11T23:33:33Z","body":"@loganfsmyth For what use case? It depends what they want to do. If they want to remove / reorder / change options for a specific plugin why wouldn't they know the name?"}}