Commit 2d22d9c7 by Adeel Mujahid

Merge pull request #839 from am11/master

Code: Skips path.resolve when outFile is not set
parents e403fe36 998ecbed
......@@ -55,7 +55,7 @@ function getSourceMap(options) {
sourceMap = options.outFile + '.map';
}
return sourceMap ? path.resolve(sourceMap) : null;
return sourceMap && typeof sourceMap === 'string' ? path.resolve(sourceMap) : null;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment