{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babelify/issues/96","labels_url":"https://api.github.com/repos/babel/babelify/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/babel/babelify/issues/96/comments","events_url":"https://api.github.com/repos/babel/babelify/issues/96/events","html_url":"https://github.com/babel/babelify/pull/96","id":89532756,"number":96,"title":"Add a cache for previously transformed code","user":{"login":"mauricedb","id":3197730,"avatar_url":"https://avatars.githubusercontent.com/u/3197730?v=3","gravatar_id":"","url":"https://api.github.com/users/mauricedb","html_url":"https://github.com/mauricedb","followers_url":"https://api.github.com/users/mauricedb/followers","following_url":"https://api.github.com/users/mauricedb/following{/other_user}","gists_url":"https://api.github.com/users/mauricedb/gists{/gist_id}","starred_url":"https://api.github.com/users/mauricedb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauricedb/subscriptions","organizations_url":"https://api.github.com/users/mauricedb/orgs","repos_url":"https://api.github.com/users/mauricedb/repos","events_url":"https://api.github.com/users/mauricedb/events{/privacy}","received_events_url":"https://api.github.com/users/mauricedb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-19T10:50:00Z","updated_at":"2015-06-19T18:57:02Z","closed_at":"2015-06-19T18:57:02Z","pull_request":{"url":"https://api.github.com/repos/babel/babelify/pulls/96","html_url":"https://github.com/babel/babelify/pull/96","diff_url":"https://github.com/babel/babelify/pull/96.diff","patch_url":"https://github.com/babel/babelify/pull/96.patch"},"body":"Added a cache to prevent transforming the same code every time a Gulp watch triggers a new build. As usually most ES6 files are not actually changed there is no need to transform the again which could be costly.\r\n\r\nIn our build this change resulted in a drop from 15 seconds to 3 seconds to Browserify and Babelify our React code."},"comment":{"url":"https://api.github.com/repos/babel/babelify/issues/comments/113606123","html_url":"https://github.com/babel/babelify/pull/96#issuecomment-113606123","issue_url":"https://api.github.com/repos/babel/babelify/issues/96","id":113606123,"user":{"login":"mauricedb","id":3197730,"avatar_url":"https://avatars.githubusercontent.com/u/3197730?v=3","gravatar_id":"","url":"https://api.github.com/users/mauricedb","html_url":"https://github.com/mauricedb","followers_url":"https://api.github.com/users/mauricedb/followers","following_url":"https://api.github.com/users/mauricedb/following{/other_user}","gists_url":"https://api.github.com/users/mauricedb/gists{/gist_id}","starred_url":"https://api.github.com/users/mauricedb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauricedb/subscriptions","organizations_url":"https://api.github.com/users/mauricedb/orgs","repos_url":"https://api.github.com/users/mauricedb/repos","events_url":"https://api.github.com/users/mauricedb/events{/privacy}","received_events_url":"https://api.github.com/users/mauricedb/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T18:57:02Z","updated_at":"2015-06-19T18:57:02Z","body":"I have watchify working for my normal bundle based on [this](https://github.com/gulpjs/gulp/blob/master/docs/recipes/fast-browserify-builds-with-watchify.md) recipe. Maybe adding a link to the FAQ sheet would be helpful for others.\r\n\r\nThe two things I haven't figured out yet is how to speed up the preprocessing for Karma and for eslint. For eslint I am using gulp-cached so far to only lint the changed files but that means that I don't see errors in files I did not just edit. Not ideal but a workable solution.\r\n\r\nAny pointers would be appreciated.\r\n\r\nThanks."}}