diff --git a/playgrounds/sandbox/run.js b/playgrounds/sandbox/run.js index 4531e7182d..771dcc668e 100644 --- a/playgrounds/sandbox/run.js +++ b/playgrounds/sandbox/run.js @@ -46,7 +46,14 @@ for (const generate of /** @type {const} */ (['client', 'server'])) { modern: true }); - fs.writeFileSync(`${cwd}/output/${file}.json`, JSON.stringify(ast, null, '\t')); + fs.writeFileSync( + `${cwd}/output/${file}.json`, + JSON.stringify( + ast, + (key, value) => (typeof value === 'bigint' ? ['BigInt', value.toString()] : value), + '\t' + ) + ); try { const migrated = migrate(source);