fix(source map): fix inline source map comment slicing (#1237)

This commit is contained in:
Linjie Ding 2020-11-28 07:46:06 -08:00 committed by GitHub
parent 8ca3d1160d
commit cdaefcc27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ impl Compiler {
),
Some(v) => v,
};
let encoded = &s[idx + s.len()..];
let encoded = &fm.src[idx + s.len()..];
let res = base64::decode(encoded.as_bytes())
.context("failed to decode base64-encoded source map")?;