We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb90d8 commit 3049e7cCopy full SHA for 3049e7c
playgrounds/sandbox/run.js
@@ -46,7 +46,14 @@ for (const generate of /** @type {const} */ (['client', 'server'])) {
46
modern: true
47
});
48
49
- fs.writeFileSync(`${cwd}/output/${file}.json`, JSON.stringify(ast, null, '\t'));
+ fs.writeFileSync(
50
+ `${cwd}/output/${file}.json`,
51
+ JSON.stringify(
52
+ ast,
53
+ (key, value) => (typeof value === 'bigint' ? ['BigInt', value.toString()] : value),
54
+ '\t'
55
+ )
56
+ );
57
58
try {
59
const migrated = migrate(source);
0 commit comments