From 57f799b6c2bb35fd98b323a79b5ad04bc34a39f2 Mon Sep 17 00:00:00 2001 From: someone19204 <88501829+someone19204@users.noreply.github.com> Date: Mon, 18 Aug 2025 03:29:38 +0300 Subject: [PATCH] Add linker bunfig documentation (#21940) Add missing `install.linker` option to `bunfig.toml` documentation --- docs/runtime/bunfig.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/runtime/bunfig.md b/docs/runtime/bunfig.md index 1d1eada048..dca1be6569 100644 --- a/docs/runtime/bunfig.md +++ b/docs/runtime/bunfig.md @@ -496,6 +496,36 @@ Whether to generate a non-Bun lockfile alongside `bun.lock`. (A `bun.lock` will print = "yarn" ``` +### `install.linker` + +Configure the default linker strategy. Default `"hoisted"`. + +For complete documentation refer to [Package manager > Isolated installs](https://bun.com/docs/install/isolated). + +```toml +[install] +linker = "hoisted" +``` + +Valid values are: + +{% table %} + +- Value +- Description + +--- + +- `"hoisted"` +- Link dependencies in a shared `node_modules` directory. + +--- + +- `"isolated"` +- Link dependencies inside each package installation. + +{% /table %} +