fix inputSourceMap option

See #827 - it looks like `opts.inputSourceMap` is the wrong way round, babel should only use an input sourcemap if the `inputSourceMap` option is *not* `false`
This commit is contained in:
Rich Harris 2015-03-13 10:46:50 -04:00
parent 27fc574e9f
commit a00d2c33d8

View File

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