---
title: "Bun v0.6.12"
description: "Bun v0.6.12 makes runtime errors more readable by patching JavaScriptCore to format Error.prototype.stack like V8, hiding internal builtin frames, and automatically sourcemapping stacks back to original (pre-transpile) source."
url: "https://swe.quest/articles/bun-v0-6-12-dcf44324c9c4f6f2"
canonical: "https://bun.com/blog/bun-v0.6.12"
source: "Bun"
published: "2023-06-30"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["javascript","runtimes","debugging","build-systems"]
---

# Bun v0.6.12

A post on [Bun](https://swe.quest/sources/bun.md), published 2023-06-30, 4 min read, Release. Original: [https://bun.com/blog/bun-v0.6.12](https://bun.com/blog/bun-v0.6.12)

## Summary

Bun v0.6.12 makes runtime errors more readable by patching JavaScriptCore to format Error.prototype.stack like V8, hiding internal builtin frames, and automatically sourcemapping stacks back to original (pre-transpile) source. It also improves CommonJS/ESM interop by inserting the \_\_esModule annotation on require of ES modules and stops using package.json's "module" field at runtime to match Node.js resolution. Other changes include SQLite FTS5 full-text search, a new Bun.file(path).exists() method, node:http and node:stream fixes that unblock Google Maps and ytdl-core packages, a minifier rewrite of obj\["a"\] to obj.a, and several bundler bugfixes.

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)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)

## Prerequisites

- JavaScript modules (CommonJS and ESM) ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Node.js package resolution ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, JavaScriptCore, V8, CommonJS, SQLite FTS5, source maps

## Related posts

- [Bun v1.0.12](https://swe.quest/articles/bun-v1-0-12-7e77f90bbca6622e.md): Bun · 2023-11-16 · Medium · 12 min read · JavaScript, Runtimes & VMs, Testing, Developer tools
  Bun v1.0.12 fixes 24 bugs and adds \`bun -e\` for evaluating inline scripts (with TypeScript, JSX and top-level await), \`--env-file\` for choosing which .env files to load, \`server.url\`, \`import.meta.env\`, and \`expect.unreachable()\` in bun:test.
- [Bun v1.1.43](https://swe.quest/articles/bun-v1-1-43-049d4037eb2c703f.md): Bun · 2025-01-08 · Medium · 14 min read · JavaScript, Runtimes & VMs, Build systems, Storage systems, Memory management
  Bun v1.1.43 adds a first-class S3 client with a Blob/Response-style API that works against any S3-compatible store, experimental HTML bundling in bun build, V8-format heap snapshots generated from its JavaScriptCore fork, and new bun install options including --filter, --lockfile-only and --peer.
- [Bun v1.2.17](https://swe.quest/articles/bun-v1-2-17-6bfcdfe2dc03cf80.md): Bun · 2025-06-21 · Medium · 10 min read · JavaScript, Runtimes & VMs, Build systems, Performance engineering
  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 v1.1.37](https://swe.quest/articles/bun-v1-1-37-46bd1462fa31707f.md): Bun · 2024-11-26 · Medium · 7 min read · JavaScript, Runtimes & VMs, Developer tools, Memory management
  Bun v1.1.37 fixes 62 bugs and adds realtime runtime error reporting in VSCode's Problems tab without a debugger, self-referencing package imports via the exports field, and npm\_package\_config\_ and npm\_lifecycle environment variables for bun run.
- [Bun v0.6.10](https://swe.quest/articles/bun-v0-6-10-c9f67c1760f76c0a.md): Bun · 2023-06-26 · Medium · 8 min read · JavaScript, Runtimes & VMs, Testing, Build systems
  Bun v0.6.10 rewrites CommonJS module loading for better Node.js compatibility.

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)
