Hey guys, several issues, but logging it as a single one because it might be related to the same thing.
First up, I noticed null characters being inserted into the built files. It inserts somewhere between 100k and 200k null chars. Where they are placed is always between the joining of two modules, but it's random which modules it's placed between.
Second, it seems the files vary in line length between consecutive builds with no modifications to the source:
Third, sometimes this happens:
That's the end of the file. Notice the unexpected end of input, or truncated source. All of these things are reproducible in the fact that they happen, but where they happen is kinda random.
I'm using Browserify 9.0.3 and Factor Bundle 2.3.3. None of these issues occur when I use Browserify directly and compile to a single resource. Unfortunately that isn't an option for us right now.
The randomness is very disconcerting especially since there's no errors during compilation.
Seems that if you move the stuff outside of the bundle callback things work a bit better. This means that .bundle() must get called prior to the streams being flushed.
Hey guys, several issues, but logging it as a single one because it might be related to the same thing.
First up, I noticed null characters being inserted into the built files. It inserts somewhere between 100k and 200k null chars. Where they are placed is always between the joining of two modules, but it's random which modules it's placed between.
Second, it seems the files vary in line length between consecutive builds with no modifications to the source:
Third, sometimes this happens:
That's the end of the file. Notice the unexpected end of input, or truncated source. All of these things are reproducible in the fact that they happen, but where they happen is kinda random.
Here's my gulp build:
I'm using Browserify 9.0.3 and Factor Bundle 2.3.3. None of these issues occur when I use Browserify directly and compile to a single resource. Unfortunately that isn't an option for us right now.
The randomness is very disconcerting especially since there's no errors during compilation.