Skip to content

Commit 42665df

Browse files
committed
Corrected ordering on rootDir options
1 parent 33be2bf commit 42665df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = function (browserify, options) {
8888
options = options || {};
8989

9090
// if no root directory is specified, assume the cwd
91-
var rootDir = options.rootDir || browserify._options.basedir || options.d;
91+
var rootDir = options.rootDir || options.d || browserify._options.basedir;
9292
if (rootDir) { rootDir = path.resolve(rootDir); }
9393
if (!rootDir) { rootDir = process.cwd(); }
9494

0 commit comments

Comments
 (0)