Claude
d1a9ef8053
perf: add Rollup tree-shaking pre-pass for export * as barrels
...
Bun's bundler (and esbuild) cannot tree-shake `export * as X from "./mod"`
barrels — see evanw/esbuild#1420 . Rollup can, using AST-level analysis to
drop unused exports and their transitive imports.
This adds a Rollup pre-pass to the build pipeline that runs before Bun's
compile step. Rollup resolves internal source, eliminates dead code across
the 57 `export * as` barrels, and writes tree-shaken ESM to a temp directory.
Bun then compiles the pre-processed output into the final binary.
- Add `script/treeshake-prepass.ts` with Bun.Transpiler-based Rollup plugin
- Integrate into `script/build.ts` (skippable via `--skip-treeshake`)
- Add `rollup` as devDependency
- Pre-pass completes in ~5s, negligible vs full multi-platform build
Current bundle savings are modest (~0.7%) because the single-entrypoint
architecture means most code paths are reachable. Savings scale with:
- Per-command entry points or lazy loading
- Remaining 50 `export namespace` → `export * as` migrations
- Future code splitting
https://claude.ai/code/session_01R7zMpXjsq1R6uR7xpyJ14i
2026-04-16 12:37:49 +00:00
opencode-agent[bot]
ac2fa668cf
chore: generate
2026-04-16 00:46:18 +00:00
Kit Langton
3d6f90cb53
feat: add oxlint with correctness defaults ( #22682 )
2026-04-15 20:45:19 -04:00
Shoubhit Dash
5b60e51c9f
fix(opencode): resolve ripgrep worker path in builds ( #22436 )
2026-04-14 16:39:21 +05:30
Luke Parker
9b2648dd57
build(opencode): shrink single-file executable size ( #22362 )
2026-04-14 15:49:26 +10:00
Brendan Allan
46f243fea7
app: remove min loading duration ( #21655 )
2026-04-09 16:29:46 +08:00
Dax
629e866ff0
fix(npm): Arborist reify fails on compiled binary — Bun pre-resolves node-gyp path at build time ( #21040 )
2026-04-04 16:27:20 -04:00
Sebastian
6274b0677c
tui plugins ( #19347 )
2026-03-27 15:00:26 +01:00
Luke Parker
ef7d1f7efa
fix: web ui bundle build on windows ( #19337 )
2026-03-26 22:14:20 +00:00
opencode-agent[bot]
9a2482ac09
chore: generate
2026-03-26 15:05:29 +00:00
Dax
ec20efc11a
feat: embed WebUI in binary with proxy flags ( #19299 )
...
Co-authored-by: BlankParticle <blankparticle@gmail.com>
2026-03-26 14:43:56 +00:00
Kit Langton
50f6aa3763
fix(opencode): skip typechecking generated models snapshot ( #19018 )
2026-03-24 19:11:45 -04:00
Dax Raad
129fe1e350
ci
2026-03-20 17:00:05 -04:00
Dax Raad
3f249aba6d
commit and push
2026-03-20 16:36:19 -04:00
Dax Raad
b1ef501207
Merge remote-tracking branch 'origin/dev' into dev
2026-03-11 23:24:38 -04:00
Dax Raad
9fb12a906e
core: remove external sourcemap generation to reduce build artifacts
2026-03-11 23:24:26 -04:00
Luke Parker
547eb7676d
feat(windows): add arm64 release targets for cli and desktop ( #16696 )
2026-03-12 00:25:09 +00:00
Dax Raad
7417c869fc
fix issue with migration
2026-03-06 16:44:49 -05:00
Luis Felipe Cordeiro Sena
b7605add58
fix(app): enable auto-accept keybind regardless of permission config ( #16259 )
2026-03-06 04:49:12 -06:00
Luke Parker
fce811b52f
fix: most segfaults on windows with Bun v1.3.10 stable ( #15181 )
2026-02-26 17:55:01 +10:00
Luke Parker
cf5cfb48cd
upgrade to bun 1.3.10 canary and force baseline builds always ( #14843 )
2026-02-24 16:06:45 +10:00
Brendan Allan
ce17f9dd94
desktop: publish betas to separate repo ( #14376 )
2026-02-20 22:33:21 +08:00
Dax
6d95f0d14c
sqlite again ( #10597 )
...
Co-authored-by: Github Action <action@github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
2026-02-14 04:19:02 +00:00
Caleb Norton
e772fc6e23
fix: revert "feat(app): add web input focus shortcut ( #12493 )" ( #12639 )
2026-02-07 19:26:10 -06:00
ChangeHow
805207e096
feat(app): add web input focus shortcut ( #12493 )
2026-02-07 13:35:46 -06:00
Benjamin Bartels
f1caf84064
feat(build): respect OPENCODE_MODELS_URL env var ( #11384 )
2026-01-30 19:37:37 -06:00
Dax
9ed3b0742f
ci ( #11149 )
...
Co-authored-by: opencode <opencode@sst.dev>
2026-01-29 13:17:55 -05:00
Dax Raad
fa1a54ba3d
fix nix
2026-01-24 13:24:40 -05:00
Dax Raad
e3c1861a3e
get rid of models.dev macro
2026-01-24 12:27:13 -05:00
Caleb Norton
dac099a489
feat(nix): overhaul nix flake and packages ( #9032 )
2026-01-18 11:14:13 -06:00
Aiden Cline
a2f80f7c0d
fix: add --use-system-ca flag in execArgv
2026-01-06 21:01:03 -06:00
Christopher Tso
6dc4e5ac93
Make CLI build script Windows-friendly ( #5835 )
2025-12-21 00:09:58 -06:00
Aiden Cline
7bf6f264e4
bump bun version & set flags this time
2025-12-13 13:00:03 -06:00
Aiden Cline
4dcda3d53d
fix: parcel watcher musl support
2025-12-08 16:08:53 -06:00
Luke Parker
c5b4cc80cc
fix: bunfs path on windows ( #5011 )
2025-12-03 11:21:13 -06:00
Dax Raad
eefb3c43dd
fix arg parsing
2025-11-21 21:13:43 -05:00
Dax Raad
db9e2b1aac
ci: disable automatic config loading during CLI builds to prevent configuration interference
2025-11-21 19:08:51 -05:00
Aiden Cline
e49204bd33
ignore: fix snapshot ( #4444 )
...
Co-authored-by: opencode <opencode@sst.dev>
2025-11-18 01:22:38 -06:00
Aiden Cline
856c87d05c
fix: snapshot?
2025-11-18 01:02:52 -06:00
Aiden Cline
6527a123f0
fix aur build ( #4359 )
2025-11-15 20:16:19 -06:00
Luke Parker
73443585e5
fix: resolve bun/pnpm global install failures on Windows ( #4275 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2025-11-13 10:38:57 -06:00
Aiden Cline
f80a3fea31
fixes
2025-11-12 22:05:07 -06:00
Luke Parker
43a8d1b1ae
fix: Enable Windows builds and fix bun+pnpm install on Windows ( #4273 )
2025-11-12 21:57:44 -06:00
Dax Raad
a6b066bd47
ci
2025-11-11 02:15:33 -05:00
Dax Raad
995b23787c
ci
2025-11-11 01:48:29 -05:00
Dax Raad
38cee3b848
ci: sync
2025-11-11 01:37:10 -05:00
Dax Raad
ecf5040966
tui: update @opentui/core to v0.1.39 and fix build script for new target format
2025-11-11 01:24:17 -05:00
GitHub Action
34ff87d504
chore: format code
2025-11-08 01:59:02 +00:00
Christian Stewart
09bb819064
fix(tui): worker path resolution in dev mode ( #3778 )
...
Signed-off-by: Christian Stewart <christian@cjs.zip>
Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
2025-11-04 17:38:11 +01:00
Dax
96bdeb3c7b
OpenTUI is here ( #2685 )
2025-10-31 15:07:36 -04:00