Fix the default for the sourcemap basepath

This commit is contained in:
Luke Page
2013-09-14 11:26:19 +01:00
parent 0a70eded8b
commit de23ea6652

View File

@@ -206,7 +206,7 @@ if (output) {
}
}
options.sourceMapBasepath = options.sourceMapBasepath || process.cwd();
options.sourceMapBasepath = options.sourceMapBasepath || (input ? path.dirname(input) : process.cwd());
if (options.sourceMap === true) {
if (!output) {