diff --git a/website/src/components/repl/lib/compile.ts b/website/src/components/repl/lib/compile.ts index 78fcb5d11d..8858cb0df4 100644 --- a/website/src/components/repl/lib/compile.ts +++ b/website/src/components/repl/lib/compile.ts @@ -47,7 +47,10 @@ export default function compile(code: string, config: CompileConfig): Return { transitions.wrapPluginVisitorMethod; } - const configForAst = structuredClone(config.babelConfig); + const configForAst = structuredClone({ + ...config.babelConfig, + wrapPluginVisitorMethod: undefined, + }); (configForAst.plugins ??= []).unshift(() => { return { visitor: {