{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/1770","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/1770/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/1770/events","html_url":"https://github.com/rollup/rollup/issues/1770","id":278535073,"number":1770,"title":"eliminating development-only code paths","user":{"login":"ianstormtaylor","id":311752,"avatar_url":"https://avatars0.githubusercontent.com/u/311752?v=4","gravatar_id":"","url":"https://api.github.com/users/ianstormtaylor","html_url":"https://github.com/ianstormtaylor","followers_url":"https://api.github.com/users/ianstormtaylor/followers","following_url":"https://api.github.com/users/ianstormtaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianstormtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianstormtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianstormtaylor/subscriptions","organizations_url":"https://api.github.com/users/ianstormtaylor/orgs","repos_url":"https://api.github.com/users/ianstormtaylor/repos","events_url":"https://api.github.com/users/ianstormtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianstormtaylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-01T17:14:48Z","updated_at":"2017-12-01T17:52:21Z","closed_at":null,"author_association":"NONE","body":"Hey! Thanks for Rollup, it's awesome 😄 \r\n\r\nI was wondering if there was already support for eliminating dev-only code paths, for things like `invariant/warning` or just plain `if (process.env.NODE_ENV != 'production')`. I was previously using Babel for this, but in the interest of the smallest possible builds I was thinking of switching to Bublé.\r\n\r\nBut I wasn't sure if this should be a Bublé thing, or a Rollup thing. Really it seems like it could be a Rollup plugin.\r\n\r\nHas someone already worked on this?"},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/348562522","html_url":"https://github.com/rollup/rollup/issues/1770#issuecomment-348562522","issue_url":"https://api.github.com/repos/rollup/rollup/issues/1770","id":348562522,"user":{"login":"ianstormtaylor","id":311752,"avatar_url":"https://avatars0.githubusercontent.com/u/311752?v=4","gravatar_id":"","url":"https://api.github.com/users/ianstormtaylor","html_url":"https://github.com/ianstormtaylor","followers_url":"https://api.github.com/users/ianstormtaylor/followers","following_url":"https://api.github.com/users/ianstormtaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianstormtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianstormtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianstormtaylor/subscriptions","organizations_url":"https://api.github.com/users/ianstormtaylor/orgs","repos_url":"https://api.github.com/users/ianstormtaylor/repos","events_url":"https://api.github.com/users/ianstormtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianstormtaylor/received_events","type":"User","site_admin":false},"created_at":"2017-12-01T17:52:21Z","updated_at":"2017-12-01T17:52:21Z","author_association":"NONE","body":"Just realized, this won't help with `invariant/warning`, since they aren't dead by default. We'd need something like [`babel-plugin-dev-expression`](https://github.com/4Catalyzer/babel-plugin-dev-expression) for those to be auto-pruned."}}
{"actor":{"display_login":"ianstormtaylor"}}