{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/381","labels_url":"https://api.github.com/repos/6to5/6to5/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/381/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/381/events","html_url":"https://github.com/6to5/6to5/issues/381","id":53333937,"number":381,"title":"Add magic comment to exclude a given section of native-ES6-specific code","user":{"login":"cvrebert","id":419884,"avatar_url":"https://avatars.githubusercontent.com/u/419884?v=3","gravatar_id":"","url":"https://api.github.com/users/cvrebert","html_url":"https://github.com/cvrebert","followers_url":"https://api.github.com/users/cvrebert/followers","following_url":"https://api.github.com/users/cvrebert/following{/other_user}","gists_url":"https://api.github.com/users/cvrebert/gists{/gist_id}","starred_url":"https://api.github.com/users/cvrebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvrebert/subscriptions","organizations_url":"https://api.github.com/users/cvrebert/orgs","repos_url":"https://api.github.com/users/cvrebert/repos","events_url":"https://api.github.com/users/cvrebert/events{/privacy}","received_events_url":"https://api.github.com/users/cvrebert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/6to5/6to5/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-04T11:42:57Z","updated_at":"2015-01-04T20:09:45Z","closed_at":null,"body":"It would be useful if there was a magic comment pragma to make 6to5 delete a section of only-relevant-to-native-ES6 code when doing transpilation to ES5. For example (I don't care what exact syntax you choose):\r\n```js\r\n/* 6to5 delete:start */\r\n// Anything in there will be omitted from the resulting transpiled JS.\r\n/* 6to5 delete:end */\r\n```"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/68646849","html_url":"https://github.com/6to5/6to5/issues/381#issuecomment-68646849","issue_url":"https://api.github.com/repos/6to5/6to5/issues/381","id":68646849,"user":{"login":"fkling","id":179026,"avatar_url":"https://avatars.githubusercontent.com/u/179026?v=3","gravatar_id":"","url":"https://api.github.com/users/fkling","html_url":"https://github.com/fkling","followers_url":"https://api.github.com/users/fkling/followers","following_url":"https://api.github.com/users/fkling/following{/other_user}","gists_url":"https://api.github.com/users/fkling/gists{/gist_id}","starred_url":"https://api.github.com/users/fkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkling/subscriptions","organizations_url":"https://api.github.com/users/fkling/orgs","repos_url":"https://api.github.com/users/fkling/repos","events_url":"https://api.github.com/users/fkling/events{/privacy}","received_events_url":"https://api.github.com/users/fkling/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T20:09:45Z","updated_at":"2015-01-04T20:09:45Z","body":"This seems to be rather unrelated to what 6to5 does. I don't think it's a good idea to add this feature.\r\n\r\nThere is already a package which does something like that: https://www.npmjs.com/package/preprocess"}}