Bun uses bunfig.toml (TOML format) with a two-tier system:
| Local | Global | |
|---|---|---|
| File | bunfig.toml (project root) |
$HOME/.bunfig.toml or $XDG_CONFIG_HOME/.bunfig.toml |
| Dot prefix | No | Yes |
| # Investigation: Deno Issue #15176 — Resolving Promises in `beforeunload` Event | |
| ## The Problem | |
| ```js | |
| await new Promise(resolve => { | |
| window.onbeforeunload = resolve; | |
| }); | |
| ``` |
A dev server is a local HTTP server optimized for the development loop. Its job is to serve your application locally with features that make iteration fast.
URL.revokeObjectURL() after new Worker(blobURL) causes intermittent "Module not found" errors because blob content is fetched asynchronously on the worker thread, not during construction.
Works in Chrome/Firefox. Fails in Deno.
Workers created with node:worker_threads are terminated when idle, even if they have ref'd transferable objects like MessagePort or SharedArrayBuffer that should keep them alive.
There are two independent keepalive decision systems, and that's the root problem:
| /******/ (() => { // webpackBootstrap | |
| /******/ "use strict"; | |
| /******/ var __webpack_modules__ = ({ | |
| /***/ "./src/base.ts": | |
| /*!*********************!*\ | |
| !*** ./src/base.ts ***! | |
| \*********************/ | |
| /***/ (function(__unused_webpack_module, exports, __webpack_require__) { |
| addEventListener("fetch", (event) => { | |
| new ArrayBuffer(1 << 30); | |
| }); |
| addEventListener("fetch", (event) => { | |
| while (true) {} | |
| }); |
| addEventListener("fetch", (event) => { | |
| throw new Error("boom!"); | |
| }); |
| ❯ cargo run -- task | |
| Compiling deno v1.19.2 (/Users/ib/dev/deno/cli) | |
| Finished dev [unoptimized + debuginfo] target(s) in 20.58s | |
| Running `target/debug/deno task` | |
| Available tasks: | |
| - async | |
| sleep 1 && echo 2 & | |
| - boolean_list | |
| echo 1 && false || echo 2 | |
| - env_var_substitution |