Skip to content

Commit 67bdbb6

Browse files
committed
code refactor
1 parent 9f371c8 commit 67bdbb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ function getWorkingLists(options) {
8989

9090
function browserifyBower(browserify, options) {
9191
options = options || {};
92-
options.require = options.require || utils.componentNames(_workdir);
93-
92+
9493
if (options.workdir) _workdir = options.workdir;
9594
if (options.conf) {
9695
var confjson = require(path.join(_workdir, options.conf));
9796
options = options.confnode && dotAccess.get(confjson, options.confnode) || confjson;
9897
}
98+
// if no reqiure configs are specified, let it include all components.
99+
options.require = options.require || utils.componentNames(_workdir);
99100

100101
///
101102
var workinglists = getWorkingLists(options);

0 commit comments

Comments
 (0)