add input sourcemap false option #827

This commit is contained in:
Sebastian McKenzie 2015-03-13 13:12:38 +11:00
parent 3cd110a7c9
commit 4b066f7f1b

View File

@ -280,10 +280,12 @@ export default class File {
parseInputSourceMap(code: string) {
var opts = this.opts;
var inputMap = convertSourceMap.fromSource(code);
if (inputMap) {
opts.inputSourceMap = inputMap.toObject();
code = convertSourceMap.removeComments(code);
if (opts.inputSourceMap === false) {
var inputMap = convertSourceMap.fromSource(code);
if (inputMap) {
opts.inputSourceMap = inputMap.toObject();
code = convertSourceMap.removeComments(code);
}
}
return code;