{"action":"created","issue":{"url":"https://api.github.com/repos/jas/gulp-preprocess/issues/13","labels_url":"https://api.github.com/repos/jas/gulp-preprocess/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jas/gulp-preprocess/issues/13/comments","events_url":"https://api.github.com/repos/jas/gulp-preprocess/issues/13/events","html_url":"https://github.com/jas/gulp-preprocess/issues/13","id":66655929,"number":13,"title":"Hangs when invoked after browserify when debug: true","user":{"login":"LeviBotelho","id":3420522,"avatar_url":"https://avatars.githubusercontent.com/u/3420522?v=3","gravatar_id":"","url":"https://api.github.com/users/LeviBotelho","html_url":"https://github.com/LeviBotelho","followers_url":"https://api.github.com/users/LeviBotelho/followers","following_url":"https://api.github.com/users/LeviBotelho/following{/other_user}","gists_url":"https://api.github.com/users/LeviBotelho/gists{/gist_id}","starred_url":"https://api.github.com/users/LeviBotelho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeviBotelho/subscriptions","organizations_url":"https://api.github.com/users/LeviBotelho/orgs","repos_url":"https://api.github.com/users/LeviBotelho/repos","events_url":"https://api.github.com/users/LeviBotelho/events{/privacy}","received_events_url":"https://api.github.com/users/LeviBotelho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T17:10:46Z","updated_at":"2015-04-13T11:37:17Z","closed_at":null,"body":"Gulp-preprocess causes the following Gulp task to hang when I run it.\r\n\r\n```\r\nvar gulp = require(\"gulp\"),\r\n    browserify = require(\"browserify\"),\r\n    buffer = require(\"vinyl-buffer\"),\r\n    preprocess = require(\"gulp-preprocess\"),\r\n    reactify = require(\"reactify\"),\r\n    sass = require(\"gulp-sass\"),\r\n    source = require(\"vinyl-source-stream\"),\r\n    stripBomify = require(\"strip-bomify\"):\r\n\r\ngulp.task(\"javascript\", function () {\r\n    return browserify({ entries: paths.APP_JS_SOURCE, debug: true, transform: [stripBomify, reactify] })\r\n        .bundle()\r\n        .pipe(source('bundle.js'))\r\n        .pipe(buffer())\r\n        .pipe(preprocess({context: { DEBUG: true } }))\r\n        .pipe(gulp.dest(paths.JS_BUILD_PATH));\r\n});\r\n```\r\n\r\nIf I change the Browserify `debug` value to true, the task executes without issue. Removing preprocess from the task altogether results in the task executing correctly no matter what `debug` is set to."},"comment":{"url":"https://api.github.com/repos/jas/gulp-preprocess/issues/comments/92321982","html_url":"https://github.com/jas/gulp-preprocess/issues/13#issuecomment-92321982","issue_url":"https://api.github.com/repos/jas/gulp-preprocess/issues/13","id":92321982,"user":{"login":"alexcoady","id":1643182,"avatar_url":"https://avatars.githubusercontent.com/u/1643182?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcoady","html_url":"https://github.com/alexcoady","followers_url":"https://api.github.com/users/alexcoady/followers","following_url":"https://api.github.com/users/alexcoady/following{/other_user}","gists_url":"https://api.github.com/users/alexcoady/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcoady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcoady/subscriptions","organizations_url":"https://api.github.com/users/alexcoady/orgs","repos_url":"https://api.github.com/users/alexcoady/repos","events_url":"https://api.github.com/users/alexcoady/events{/privacy}","received_events_url":"https://api.github.com/users/alexcoady/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T11:37:17Z","updated_at":"2015-04-13T11:37:17Z","body":"+1. As soon as the browserify debug is set to `false` everything works."}}