diff --git a/remix-lib/src/sourceMappingDecoder.js b/remix-lib/src/sourceMappingDecoder.js index 702d053638..2aafd0c0f5 100644 --- a/remix-lib/src/sourceMappingDecoder.js +++ b/remix-lib/src/sourceMappingDecoder.js @@ -216,6 +216,8 @@ function atIndex (index, mapping) { } current = current.split(':') 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 = {} continue }