From a00d2c33d8c1818f3352f7afe1be1baec9acee0b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 13 Mar 2015 10:46:50 -0400 Subject: [PATCH] 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` --- src/babel/transformation/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel/transformation/file.js b/src/babel/transformation/file.js index c4a9cf7b34..ee40919b2f 100644 --- a/src/babel/transformation/file.js +++ b/src/babel/transformation/file.js @@ -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();