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();