---
title: "Bun v1.2.17"
description: "Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so `bun build --target=bun` or `--compile` can produce a full-stack build or a single self-contained executable with no runtime bundling."
url: "https://swe.quest/articles/bun-v1-2-17-6bfcdfe2dc03cf80"
canonical: "https://bun.com/blog/bun-v1.2.17"
source: "Bun"
published: "2025-06-21"
difficulty: "medium"
kind: "Release"
reading_minutes: 10
tags: ["javascript","runtimes","build-systems","performance"]
---

# Bun v1.2.17

A post on [Bun](https://swe.quest/sources/bun.md), published 2025-06-21, 10 min read, Release. Original: [https://bun.com/blog/bun-v1.2.17](https://bun.com/blog/bun-v1.2.17)

## Summary

Bun v1.2.17 adds ahead-of-time bundling for HTML imports in server code, so \`bun build --target=bun\` or \`--compile\` can produce a full-stack build or a single self-contained executable with no runtime bundling. Bun Shell no longer uses the native call stack, which prevents stack overflows in deeply nested scripts. Removing a pointer indirection in Strong references cuts per-timer memory for \`setTimeout\` and \`setImmediate\` by 8-15%. Other changes include \`columnTypes\`/\`declaredTypes\` in \`bun:sqlite\`, zstd in \`node:zlib\`, \`--unhandled-rejections\` modes, \`child\_process.fork\` \`execArgv\`, and a JavaScriptCore upgrade bringing JIT string and array optimizations, a zero-copy JSON stringifier and WebAssembly interpreter hardening.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- JavaScript runtimes ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Node.js APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, JavaScriptCore, bun:sqlite, Bun Shell, Zstandard, Node.js

## Related posts

- [Bun v1.4.1](https://swe.quest/articles/bun-v1-4-1-d28e00ae252842cf.md): Bun · 2026-09-04 · Medium · 38 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, Networking
  Bun v1.4.1 fixes 202 issues and ships runtime, install and bundler improvements.
- [Bun v1.3.9](https://swe.quest/articles/bun-v1-3-9-b7a8e766ebce7857.md): Bun · 2026-02-08 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering, Compilers
  Bun v1.3.9 adds \`bun run --parallel\` and \`--sequential\` for running package.json scripts with prefixed output across workspaces, along with Node-compatible HTTP/2 connection upgrades via \`net.Server\`, \`Symbol.dispose\` support for test mocks, \`NO\_PROXY\` handling for explicit proxies, \`--cpu-prof-interval\`, and ESM bytecode in \`--compile\`.
- [Bun v1.1.19](https://swe.quest/articles/bun-v1-1-19-00c26890132a72c3.md): Bun · 2024-07-12 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v1.1.19 enables JavaScriptCore's FTL JIT on Windows for the first time in nine years, making Object.entries about 20% faster and cutting Array.map overhead roughly in half.
- [Bun v1.3.10](https://swe.quest/articles/bun-v1-3-10-809e937e8a78ed82.md): Bun · 2026-02-26 · Medium · 19 min read · JavaScript, Runtimes & VMs, Performance engineering, Build systems, TypeScript
  Bun v1.3.10 replaces its npm-based REPL with a native Zig REPL that supports top-level await, imports, history and tab completion.
- [Bun v0.3.0](https://swe.quest/articles/bun-v0-3-0-ce34b4df06ef614a.md): Bun · 2022-12-07 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.3.0 focuses on stability and Node.js/Web API compatibility, cutting memory use 3-5x under load by scheduling garbage collection in coordination with the event loop and speeding up TextEncoder.encodeInto() 3x via simdutf.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
