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:
parent
27fc574e9f
commit
a00d2c33d8
@ -280,7 +280,7 @@ export default class File {
|
|||||||
parseInputSourceMap(code: string) {
|
parseInputSourceMap(code: string) {
|
||||||
var opts = this.opts;
|
var opts = this.opts;
|
||||||
|
|
||||||
if (opts.inputSourceMap === false) {
|
if (opts.inputSourceMap !== false) {
|
||||||
var inputMap = convertSourceMap.fromSource(code);
|
var inputMap = convertSourceMap.fromSource(code);
|
||||||
if (inputMap) {
|
if (inputMap) {
|
||||||
opts.inputSourceMap = inputMap.toObject();
|
opts.inputSourceMap = inputMap.toObject();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user