---
title: "Bun v1.1.41"
description: "Bun v1.1.41 fixes 12 bugs and improves node:vm compatibility so JSDOM (runScripts, runInContext) and happy-dom work more reliably. bun build --compile gains Windows-only --windows-icon and --windows-hide-console flags, Bun.build adds throw: true, and bun install supports --omit=dev|optional|peer plus include/exclude in .npmrc and bunfig.toml."
url: "https://swe.quest/articles/bun-v1-1-41-2cd6177e31a6ba8f"
canonical: "https://bun.com/blog/bun-v1.1.41"
source: "Bun"
published: "2024-12-20"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["javascript","runtimes","build-systems"]
---

# Bun v1.1.41

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-12-20, 6 min read, Release. Original: [https://bun.com/blog/bun-v1.1.41](https://bun.com/blog/bun-v1.1.41)

## Summary

Bun v1.1.41 fixes 12 bugs and improves node:vm compatibility so JSDOM (runScripts, runInContext) and happy-dom work more reliably. bun build --compile gains Windows-only --windows-icon and --windows-hide-console flags, Bun.build adds throw: true, and bun install supports --omit=dev|optional|peer plus include/exclude in .npmrc and bunfig.toml. Bun now treats ambiguous files starting with "use strict" as CommonJS rather than ESM, since ES modules are always strict and CommonJS build output usually carries the directive. Other fixes cover bun install hangs and infinite loops with optional or unresolvable dependencies, and dropping inline sourcemaps when only the VSCode problems tab is connected, which saves memory and startup time.

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)

## Prerequisites

- CommonJS vs ESM modules
- npm package management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Bun, JSDOM, happy-dom, node:vm, bun install, CommonJS, ESM

## Related posts

- [Bun v0.6.7](https://swe.quest/articles/bun-v0-6-7-7c277e48946bb12b.md): Bun · 2023-06-02 · Medium · 4 min read · JavaScript, Runtimes & VMs
  Bun v0.6.7 fixes Node.js compatibility bugs in Node-API, node:http, undici, WebSocket, node:net and CommonJS/ESM interop, which lets Prisma, Discord.js and Puppeteer run in Bun.
- [Bun v1.1.28](https://swe.quest/articles/bun-v1-1-28-8e190941a0fa10b3.md): Bun · 2024-09-18 · Medium · 4 min read · JavaScript, Runtimes & VMs
  Bun v1.1.28 fixes 40 bugs and adds compiling and running C directly from JavaScript to use native system libraries without a separate build step, a 30x faster \`path.resolve\`, and named pipe support on Windows.
- [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 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.
- [Bun v0.6.5](https://swe.quest/articles/bun-v0-6-5-84c0b0fc152a661a.md): Bun · 2023-05-29 · Medium · 4 min read · JavaScript, Runtimes & VMs, Build systems
  Bun reimplements CommonJS as native runtime support instead of transpiler-only wrapping.

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)
