Update sourceMappingDecoder.js

pull/10/head
yann300 4 years ago committed by GitHub
parent bfa0518e4e
commit fbb3d0dadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      remix-lib/src/sourceMappingDecoder.js

@ -216,6 +216,8 @@ function atIndex (index, mapping) {
} }
current = current.split(':') current = current.split(':')
if (current[2] === '-1') { // if the current step has -1 for the file attribute, we discard it if (current[2] === '-1') { // if the current step has -1 for the file attribute, we discard it
// case: 'file' is not yet assigned, while processing the srcmap (reverse looping) to find 'start', 'length' (etc..), we tumble on -1 for the file.
// in that case the step has to be discarded
if (ret.file === undefined) ret = {} if (ret.file === undefined) ret = {}
continue continue
} }

Loading…
Cancel
Save