mirror of
https://github.com/swc-project/swc.git
synced 2024-10-05 12:49:21 +03:00
fix(source map): fix inline source map comment slicing (#1237)
This commit is contained in:
parent
8ca3d1160d
commit
cdaefcc27e
@ -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")?;
|
||||
|
Loading…
Reference in New Issue
Block a user