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
9.0.6 breaks my gulp + watchify setup #1191
Comments
+1 here :
|
b.bundle() has always been documented* as returning a readable stream. From version to version, sometimes a duplex stream would be returned as an implementation detail, but writing to it was always undefined behavior. If you must use gulp for this task, use var browserify = require('browserify'),
gulp = require('gulp'),
source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'),
uglify = require('gulp-uglify');
gulp.task('default', function () {
return browserify([__dirname + '/lib/browserified.js']).bundle()
.pipe(source('app.js'))
.pipe(buffer())
.pipe(uglify())
.pipe(gulp.dest(__dirname + '/cache'));
}); *Effectively always, starting with version 2. |
@terinjokes You probably already know this, but it's worth noting that the gulp project is still promoting this to the hilt: |
@jmm please keep the pressure on! |
I submitted a PR to fix the gulp documentation. I was unaware it was using
|
@msutherl On gulp about recommending that technique? I'll do what I can, and as you can see @terinjokes submitted a PR regarding it. |
@jmm drawing attention to the issue toward a universally-endorsed solution but, alas, saw the PR |
@msutherl Oh, gotcha. Yes, I'd like to see this saga become as solved as it needs to be. I'm experimenting to see if there are abstractions that are worthwhile (compared to the kind of stuff presented in #1044) and feasible to wrap up in a module (an integration layer or "plugin"). |
Two gulp recipes were corrected and an additional one was written last week.
|
@terinjokes: Over at watchify, I've gotten a few issues where users have been re-adding transforms in their "rebundle" functions instead of when they first setup their browserify+watchify instance (see browserify/watchify#187). These aren't the same recipes you're talking about, right? |
Addreses undefined behavior, as described in browserify/browserify#1191 A less obfuscated system, now that the server does not rebuild the client on startup.
Am I reading this wrong? It seems the objective is to produce multiple bundles and your fix is to make a single bundle. |
@terinjokes In your example above you suggest to put a file path to |
Upgrading to 9.0.6 results in the following error:
9.0.4 works fine
The text was updated successfully, but these errors were encountered: