mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
source maps
This commit is contained in:
parent
36ebeb3e5c
commit
fac329b1dc
7 changed files with 144 additions and 14 deletions
|
@ -4,7 +4,8 @@ import { rewriteJs } from "../../shared";
|
|||
function rewriteFunction(ctx: ProxyCtx, client: ScramjetClient) {
|
||||
const stringifiedFunction = ctx.call().toString();
|
||||
|
||||
ctx.return(ctx.fn(`return ${rewriteJs(stringifiedFunction, client.meta)}`)());
|
||||
let content = rewriteJs(`return ${stringifiedFunction}`, client.meta);
|
||||
ctx.return(ctx.fn(content)());
|
||||
}
|
||||
|
||||
export default function (client: ScramjetClient, self: Self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue