We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bun --hot
No response
import { spawn } from "bun"; import { writeFileSync } from "node:fs"; let i = 0; function next() { i++; writeFileSync( "hello.mjs", `// This is a medium sized testing file // ${"contents".repeat(100)} Bun.gc(true); console.log('RSS in run %s is %d MB', ${i}, process.memoryUsage().rss / 1_000_000); console.err('[done]'); `, ); } next(); await using runner = spawn({ cmd: [ // process.execPath, "--hot", "run", "hello.mjs", ], stdio: ["ignore", "inherit", "pipe"], env: { ...process.env, NO_COLOR: true, }, }); for await (const chunk of runner.stderr) { if (new TextDecoder().decode(chunk).includes("[done]")) { next(); } }
to not leak memory
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
No response
What platform is your computer?
No response
What steps can reproduce the bug?
What is the expected behavior?
to not leak memory
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: