Skip to content

Commit 83b2e97

Browse files
author
benholloway
committed
fixed incremental build cache assigned to the wrong options
1 parent 8d274d3 commit 83b2e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/build/browserify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ function create(opt) {
117117
function createInstance(files) {
118118

119119
// browserify must be debug mode
120-
var browserifyOpts = merge({}, options.browserify, {debug: true});
120+
// default to the shared watchify cache per watchify.args
121+
var browserifyOpts = merge({}, watchify.args, options.browserify, {debug: true});
121122

122-
// watchify defaults to the shared watchify cache per watchify.args
123123
// watch is not supported
124-
var watchifyOpts = merge({}, watchify.args, options.watchify, {ignoreWatch: /.*/});
124+
var watchifyOpts = merge({}, options.watchify, {ignoreWatch: /.*/});
125125

126126
// create bundler
127127
var bundler = watchify(browserify(browserifyOpts), watchifyOpts);

0 commit comments

Comments
 (0)