Hacker News· tempaccount420·· 3 小时前AI 评分72
Bun 提交 PR:用 bun build --compile --aot 将 TypeScript 提前编译为机器码
Bun PR – Compile TypeScript to machine code ahead of time
AI 导读
Bun 提交 PR,新增 `bun build --compile --aot`,在构建时把程序的 JavaScript 编译成机器码,并把函数、字符串、结构体和符号表放进从可执行文件映射的堆中;`bun run --aot` 和 `bun test --aot` 对单次运行做同样的事。
来源:Hacker News · github.com