mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 14:00:01 -04:00
fix scrammaps
This commit is contained in:
parent
e8ff38b2e5
commit
f15cf568c1
4 changed files with 103 additions and 78 deletions
|
@ -62,7 +62,14 @@ function rewriteJsWrapper(
|
|||
return input;
|
||||
}
|
||||
const after = performance.now();
|
||||
const { js, errors, duration } = out;
|
||||
const { js, map, scramtag, errors, duration } = out;
|
||||
|
||||
if ((flagEnabled("sourcemaps", meta.base), !globalThis.clients)) {
|
||||
globalThis[globalThis.$scramjet.config.globals.pushsourcemapfn](
|
||||
Array.from(map),
|
||||
scramtag
|
||||
);
|
||||
}
|
||||
|
||||
if (flagEnabled("rewriterLogs", meta.base)) {
|
||||
for (const error of errors) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue