Skip to content

Commit

Permalink
Fix #1194
Browse files Browse the repository at this point in the history
if this._bundled is true, a 'reset' will be triggered, which cause the
problem mentioned in #1194, because this.pipeline !== output after this.reset()
  • Loading branch information
jcppman committed Apr 3, 2015
1 parent 5876101 commit b63cc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ Browserify.prototype.reset = function (opts) {

Browserify.prototype.bundle = function (cb) {
var self = this;
var output = readonly(this.pipeline);
if (cb && typeof cb === 'object') {
throw new Error(
'bundle() no longer accepts option arguments.\n'
Expand All @@ -746,6 +745,7 @@ Browserify.prototype.bundle = function (cb) {
self.pipeline.write(x);
});
}
var output = readonly(this.pipeline);
if (cb) {
output.on('error', cb);
this.pipeline.pipe(concat(function (body) {
Expand Down

0 comments on commit b63cc79

Please sign in to comment.