diff --git a/src/processScript/compile.ts b/src/processScript/compile.ts index b503a84..f01a7f6 100644 --- a/src/processScript/compile.ts +++ b/src/processScript/compile.ts @@ -809,7 +809,7 @@ export async function compile(code: string, { // TODO this should be done in the minify step for (const global in (program.scope as any).globals as Record) { - if (global.startsWith(`$${uniqueID}`)) + if (global == "arguments" || global.startsWith(`$${uniqueID}`)) continue const referencePaths = getReferencePathsToGlobal(global, program)