-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Half complete outputs after using factor-bundle #350
Comments
Seems to be related to browserify/factor-bundle#61 |
So, the solution I have is non-trivial. It involves using a slightly modified fork of I don't expect this to get merged in, though I will try to get my factor-bundle fork into that repo, which is a step forward. |
Hi,
|
Grunt & Browserify beginner here. I found this to be a problem, too, while trying to create the production build of this tutorial repo: https://github.com/mitchgavan/grunt-browserify-babel/blob/master/gruntfile.js Like @shiftie, I had to add this to the
|
Similar to #330. That was closed due to node version however I believe that was a red herring, as I've noticed this now on
grunt-browserify
: 3.3.0 & 4.0.0browserify
: 8.x+factor-bundle
: 2.5.0On node 0.10.40, 0.12.7 and iojs 3.0.0
I have been getting inconsistent results with
factor-bundle
andgrunt-browserify
and I believe the issue to be a race condition.To reproduce:
Expected: A fully formed bundle
Actual: Sometimes just
require=
, sometimes a full line ending with an open brace, sometimes the actual bundleIssue: When
next()
is invoked then the plugin may still be producing output. When run via the browserify CLI, everything works as expected. When run viagrunt-browserify
,next
seems to immediately interrupt the browserify process, whenfactor-bundle
might still be streaming its output.Adding a simple timeout of 100ms to the above seems to fix it. I will investigate further and try to submit a PR.
The text was updated successfully, but these errors were encountered: