feat: ai 的随机修复

This commit is contained in:
claude-code-best
2026-05-05 19:36:38 +08:00
parent 18d6656a6a
commit 87b96199f9
8 changed files with 217 additions and 2 deletions

View File

@@ -21,7 +21,13 @@ const result = await Bun.build({
outdir,
target: 'bun',
splitting: true,
define: getMacroDefines(),
define: {
...getMacroDefines(),
// React production mode — eliminates _debugStack Error objects
// (6,889 objects × ~1.7KB = 12MB in development builds) and removes
// prop-type / key warnings not useful in a production CLI tool.
'process.env.NODE_ENV': JSON.stringify('production'),
},
features,
})