Skip to content

Commit

Permalink
perf: normalizing package data is an expensive operation (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Nov 13, 2016
1 parent 8f4c7cf commit 49cf533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yargs.js
Expand Up @@ -416,7 +416,8 @@ function Yargs (processArgs, cwd, parentRequire) {
var obj = {}
try {
obj = readPkgUp.sync({
cwd: path || require('require-main-filename')(parentRequire || require)
cwd: path || require('require-main-filename')(parentRequire || require),
normalize: false
})
} catch (noop) {}

Expand Down

0 comments on commit 49cf533

Please sign in to comment.